@Test public void testGenerate() throws GeneratorException { new GeneratorMain(new String[]{ "-c", TestApplication.class.getName(), "-d", "destdir", "-l", "en_US", "-l", "fr_FR" }) { @Override protected void generate(SkillModelSupplier skillModelSupplier, File destdir, List<Locale> locales) throws GeneratorException { assertEquals(TestApplication.class, skillModelSupplier.getClass()); assertEquals(new File("destdir"), destdir); assertEquals(Arrays.asList(Locales.en_US, Locales.fr_FR), locales); } }.run(); }
protected void generate(SkillModelSupplier skillModelSupplier, File destdir, List<Locale> locales) throws GeneratorException { new Generator(skillModelSupplier, destdir, locales).generate(); }
GeneratorMain { protected void generate(SkillModelSupplier skillModelSupplier, File destdir, List<Locale> locales) throws GeneratorException { new Generator(skillModelSupplier, destdir, locales).generate(); } }
GeneratorMain { protected void generate(SkillModelSupplier skillModelSupplier, File destdir, List<Locale> locales) throws GeneratorException { new Generator(skillModelSupplier, destdir, locales).generate(); } GeneratorMain(String[] args); }
GeneratorMain { protected void generate(SkillModelSupplier skillModelSupplier, File destdir, List<Locale> locales) throws GeneratorException { new Generator(skillModelSupplier, destdir, locales).generate(); } GeneratorMain(String[] args); static void main(String[] args); void run(); }
GeneratorMain { protected void generate(SkillModelSupplier skillModelSupplier, File destdir, List<Locale> locales) throws GeneratorException { new Generator(skillModelSupplier, destdir, locales).generate(); } GeneratorMain(String[] args); static void main(String[] args); void run();  }