/** Accuracy test of method <code>setType(Classifier)</code> and <code>getType()</code>. */ public void testTypeSetterAndGetter() { // initial value is null assertNull(feature.getType()); // set the Type with specified Classifier feature.setType(new MockClassifierImpl()); assertNotNull(feature.getType()); // set the Type with null feature.setType(null); assertNull(feature.getType()); }
/** * Accuracy test of method <code>setChangeablilty(ChangeableKind)</code> and <code> * getChangeablilty()</code>. */ public void testChangeabliltySetterAndGetter() { // initial value is null assertNull(feature.getChangeability()); // set the Changeability with specified ChangeableKind feature.setChangeability(ChangeableKind.CHANGEABLE); assertNotNull(feature.getChangeability()); // set the Changeability with null feature.setChangeability(null); assertNull(feature.getChangeability()); }
/** * Accuracy test of method <code>setTargetScope(ScopeKind)</code> and <code>getTargetScope() * </code>. */ public void testTargetScopeSetterAndGetter() { // initial value is null assertNull(feature.getTargetScope()); // set the TargetScope with specified ScopeKind feature.setTargetScope(ScopeKind.CLASSIFIER); assertNotNull(feature.getTargetScope()); // set the TargetScope with null feature.setTargetScope(null); assertNull(feature.getTargetScope()); }
/** * Accuracy test of method <code>setMultiplicity(Multiplicity)</code> and <code>getMultiplicity() * </code>. */ public void testMultiplicitySetterAndGetter() { // initial value is null assertNull(feature.getMultiplicity()); // set the Multiplicity with specified Multiplicity feature.setMultiplicity(new MultiplicityImpl()); assertNotNull(feature.getMultiplicity()); // set the Multiplicity with null feature.setMultiplicity(null); assertNull(feature.getMultiplicity()); }