Esempio n. 1
0
 @Test
 @Ignore // FIXME
 @Given("model;newParent;newChildA;newChildB")
 public Repository createInstances(Repository $) {
   assertEquals(3, $.getElements().size());
   return $;
 }
Esempio n. 2
0
 @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;
 }
Esempio n. 3
0
 @Test
 public void readFile() {
   MetaRepository m3 = MetaRepository.createFM3();
   StringBuilder buffer = new StringBuilder();
   m3.accept(new MSEPrinter(buffer));
   Importer builder = new Importer(m3);
   builder.readFrom(InputSource.fromString(buffer));
   Repository m2 = builder.getResult();
   m2.getElements();
 }