Esempio n. 1
0
 @Test
 @Given("metamodel;metamodelNames")
 public void parentChildrenAreOpposite(MetaRepository mm) {
   PropertyDescription parent = mm.descriptionNamed("TEST.Composite").attributeNamed("parent");
   PropertyDescription children = mm.descriptionNamed("TEST.Container").attributeNamed("children");
   assertNotNull(parent);
   assertNotNull(children);
   assertTrue(parent.hasOpposite());
   assertTrue(children.hasOpposite());
   assertEquals(parent, children.getOpposite());
   assertEquals(children, parent.getOpposite());
 }
Esempio n. 2
0
 public void packageClassesIsMultivalued() {
   MetaRepository m3 = MetaRepository.createFM3();
   MetaDescription m = m3.descriptionNamed("MSE.Package");
   PropertyDescription p = m.attributeNamed("classes");
   assertEquals(true, p.isMultivalued());
 }