@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; }
@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 $; }
@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; }
@Test public Tower createTower() { Tower t = new Tower(); assertNotNull(t.getMetaMetamodel()); assertNotNull(t.getMetamodel()); assertNotNull(t.getModel()); return t; }