@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; }
@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 @Ignore // FIXME @Given("tower;exportMSE;metamodel") public Repository importMSE(Tower t, String mse) { t.getModel().importMSE(mse); Repository m = t.getModel(); assertEquals(3, m.getElements().size()); return m; }
@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; }