@Test public void testFillGeneratedInfo() throws Exception { Factory factory = new Factory(); Model model = new Model(); GeneratedModelSupport support = new GeneratedModelSupport(); support.fillGeneratedInfo(factory, model); List<String> infoList = model.getGeneratedInfoList(); assertEquals(2, infoList.size()); assertEquals("S2JDBC-Gen test-0.0.1", infoList.get(0)); assertEquals(Factory.class.getName(), infoList.get(1)); }
public void fillGeneratedInfo(Object modelFactory, GeneratedModel model) { ProductInfo productInfo = ProductInfo.getInstance(); model.addGeneratedInfo(productInfo.getName() + " " + productInfo.getVersion()); model.addGeneratedInfo(modelFactory.getClass().getName()); }
GeneratedModelSupport { public void fillGeneratedInfo(Object modelFactory, GeneratedModel model) { ProductInfo productInfo = ProductInfo.getInstance(); model.addGeneratedInfo(productInfo.getName() + " " + productInfo.getVersion()); model.addGeneratedInfo(modelFactory.getClass().getName()); } }
GeneratedModelSupport { public void fillGeneratedInfo(Object modelFactory, GeneratedModel model) { ProductInfo productInfo = ProductInfo.getInstance(); model.addGeneratedInfo(productInfo.getName() + " " + productInfo.getVersion()); model.addGeneratedInfo(modelFactory.getClass().getName()); }  }
GeneratedModelSupport { public void fillGeneratedInfo(Object modelFactory, GeneratedModel model) { ProductInfo productInfo = ProductInfo.getInstance(); model.addGeneratedInfo(productInfo.getName() + " " + productInfo.getVersion()); model.addGeneratedInfo(modelFactory.getClass().getName()); }  void fillGeneratedInfo(Object modelFactory, GeneratedModel model); }
GeneratedModelSupport { public void fillGeneratedInfo(Object modelFactory, GeneratedModel model) { ProductInfo productInfo = ProductInfo.getInstance(); model.addGeneratedInfo(productInfo.getName() + " " + productInfo.getVersion()); model.addGeneratedInfo(modelFactory.getClass().getName()); }  void fillGeneratedInfo(Object modelFactory, GeneratedModel model);  }