| /** |
| * Copyright (c) 2004 - 2008 Eike Stepper, Germany. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Eike Stepper - initial API and implementation |
| * |
| * |
| * $Id: CommitterTest.java,v 1.3 2008-08-01 07:53:25 estepper Exp $ |
| */ |
| package org.eclipse.net4j.pop.tests; |
| |
| import org.eclipse.net4j.pop.Committer; |
| import org.eclipse.net4j.pop.PopFactory; |
| |
| import junit.framework.TestCase; |
| import junit.textui.TestRunner; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * A test case for the model object '<em><b>Committer</b></em>'. |
| * <!-- end-user-doc --> |
| * <p> |
| * The following features are tested: |
| * <ul> |
| * <li>{@link org.eclipse.net4j.pop.Committer#isActive() <em>Active</em>}</li> |
| * </ul> |
| * </p> |
| * <p> |
| * The following operations are tested: |
| * <ul> |
| * <li>{@link org.eclipse.net4j.pop.Committer#deactivate(java.util.Date) <em>Deactivate</em>}</li> |
| * </ul> |
| * </p> |
| * @generated |
| */ |
| public class CommitterTest extends TestCase |
| { |
| |
| /** |
| * The fixture for this Committer test case. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected Committer fixture = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public static void main(String[] args) |
| { |
| TestRunner.run(CommitterTest.class); |
| } |
| |
| /** |
| * Constructs a new Committer test case with the given name. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public CommitterTest(String name) |
| { |
| super(name); |
| } |
| |
| /** |
| * Sets the fixture for this Committer test case. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected void setFixture(Committer fixture) |
| { |
| this.fixture = fixture; |
| } |
| |
| /** |
| * Returns the fixture for this Committer test case. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected Committer getFixture() |
| { |
| return fixture; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see junit.framework.TestCase#setUp() |
| * @generated |
| */ |
| @Override |
| protected void setUp() throws Exception |
| { |
| setFixture(PopFactory.eINSTANCE.createCommitter()); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see junit.framework.TestCase#tearDown() |
| * @generated |
| */ |
| @Override |
| protected void tearDown() throws Exception |
| { |
| setFixture(null); |
| } |
| |
| /** |
| * Tests the '{@link org.eclipse.net4j.pop.Committer#isActive() <em>Active</em>}' feature getter. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see org.eclipse.net4j.pop.Committer#isActive() |
| * @generated |
| */ |
| public void testIsActive() |
| { |
| // TODO: implement this feature getter test method |
| // Ensure that you remove @generated or mark it @generated NOT |
| fail(); |
| } |
| |
| /** |
| * Tests the '{@link org.eclipse.net4j.pop.Committer#setActive(boolean) <em>Active</em>}' feature setter. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see org.eclipse.net4j.pop.Committer#setActive(boolean) |
| * @generated |
| */ |
| public void testSetActive() |
| { |
| // TODO: implement this feature setter test method |
| // Ensure that you remove @generated or mark it @generated NOT |
| fail(); |
| } |
| |
| /** |
| * Tests the '{@link org.eclipse.net4j.pop.Committer#deactivate(java.util.Date) <em>Deactivate</em>}' operation. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see org.eclipse.net4j.pop.Committer#deactivate(java.util.Date) |
| * @generated |
| */ |
| public void testDeactivate__Date() |
| { |
| // TODO: implement this operation test method |
| // Ensure that you remove @generated or mark it @generated NOT |
| fail(); |
| } |
| |
| } //CommitterTest |