/** * Test method for {@link * org.eclipse.papyrus.layers.stackmodel.layers.impl.CustomPropertyOperatorImpl#getOperatorInstance()}. */ @Test public void testGetOperatorInstanceFromClassname() { CustomPropertyOperator operator = LayersFactory.eINSTANCE.createCustomPropertyOperator(); // Set a classname operator.setClassname(BooleanAndOperator.class.getName()); // Check assertNotNull("custom op created and found", operator.getOperatorInstance()); }
/** * Test method for {@link * org.eclipse.papyrus.layers.stackmodel.layers.impl.CustomPropertyOperatorImpl#setClassname(java.lang.String)}. */ @Test public void testSetClassname() { CustomPropertyOperator operator = LayersFactory.eINSTANCE.createCustomPropertyOperator(); // Set a classname String classname = BooleanAndOperator.class.getName(); operator.setClassname(classname); // check assertSame("classname found", classname, operator.getClassname()); }