示例#1
0
 @Test
 @Given("#tower")
 public MetaRepository metamodel(Tower t) {
   t.getMetamodel().withAll(Composite.class, Container.class, Leaf.class);
   MetaRepository $ = t.getMetamodel();
   assertEquals(3, $.allClassDescriptions().size());
   assertEquals(4, $.all(PropertyDescription.class).size());
   return $;
 }
示例#2
0
 @Test
 public void allClassDescriptionsAreElement() {
   MetaRepository m3 = MetaRepository.createFM3();
   assertTrue(m3.getElements().containsAll(m3.allClassDescriptions()));
 }
示例#3
0
 @Test
 public void has4Classes() {
   MetaRepository m3 = MetaRepository.createFM3();
   assertEquals(4, m3.allClassDescriptions().size());
 }