Exemple #1
0
 @Test
 @Given("model")
 public Container newParent(Repository repo) {
   Object $ = repo.newInstance("TEST.Container");
   assertNotNull($);
   assertEquals(Container.class, $.getClass());
   return (Container) $;
 }
Exemple #2
0
 @Test
 @Given("model")
 public Leaf newChildB(Repository repo) {
   Object $ = repo.newInstance("TEST.Leaf");
   assertNotNull($);
   assertEquals(Leaf.class, $.getClass());
   return (Leaf) $;
 }