/** * Test method for {@link * org.eclipse.papyrus.layers.stackmodel.layers.impl.CustomPropertyOperatorImpl#getOperatorInstance()}. */ @Test public void testGetOperatorInstance() { CustomPropertyOperator operator = LayersFactory.eINSTANCE.createCustomPropertyOperator(); CustomPropertyOperatorsInstance opInstance = new BooleanAndOperator(); operator.setOperatorInstance(opInstance); // Check assertSame("custom op found", opInstance, operator.getOperatorInstance()); }
/** * 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()); }