Exemple #1
0
 @Test
 @Given("#createTower")
 public Tower towerHasLayers(Tower t) {
   assertEquals(t.getModel().getMetamodel(), t.getMetamodel());
   assertEquals(t.getMetamodel().getMetamodel(), t.getMetaMetamodel());
   assertEquals(t.getMetaMetamodel().getMetamodel(), t.getMetaMetamodel());
   return t;
 }
Exemple #2
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 $;
 }
Exemple #3
0
 @Test
 @Given("#towerHasLayers")
 public Tower tower(Tower t) {
   assertEquals(0, t.getModel().size());
   assertEquals(0, t.getMetamodel().size());
   assertEquals(25, t.getMetaMetamodel().size());
   return t;
 }
Exemple #4
0
 @Test
 public Tower createTower() {
   Tower t = new Tower();
   assertNotNull(t.getMetaMetamodel());
   assertNotNull(t.getMetamodel());
   assertNotNull(t.getModel());
   return t;
 }