Beispiel #1
0
 @Test
 public void writeFile() {
   MetaRepository m3 = MetaRepository.createFM3();
   Appendable stream = new StringBuilder();
   m3.accept(new MSEPrinter(stream));
   String mse = stream.toString();
   assertTrue(mse.length() != 0);
   // out(mse);
 }
Beispiel #2
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();
 }