/** * 2014 Urs Zeidler */ package de.urszeidler.eclipse.shr5.tests; import java.math.BigDecimal; import junit.framework.TestCase; import de.urszeidler.eclipse.shr5.Substance; /** * <!-- begin-user-doc --> * A test case for the model object '<em><b>Substance</b></em>'. * <!-- end-user-doc --> * <p> * The following features are tested: * <ul> * <li>{@link de.urszeidler.eclipse.shr5.GeldWert#getWert() <em>Wert</em>}</li> * </ul> * </p> * @generated */ public abstract class SubstanceTest extends TestCase { /** * The fixture for this Substance test case. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected Substance fixture = null; /** * Constructs a new Substance test case with the given name. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public SubstanceTest(String name) { super(name); } /** * Sets the fixture for this Substance test case. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected void setFixture(Substance fixture) { this.fixture = fixture; } /** * Returns the fixture for this Substance test case. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected Substance getFixture() { return fixture; } /** * Tests the '{@link de.urszeidler.eclipse.shr5.GeldWert#getWert() <em>Wert</em>}' feature getter. * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @see de.urszeidler.eclipse.shr5.GeldWert#getWert() * @generated not */ public void testGetWert() { getFixture().setAnzahl(10); getFixture().setProAnzahl(1); getFixture().setWertValue(new BigDecimal(100)); assertEquals(1000L, getFixture().getWert().longValue()); } } // SubstanceTest