GeneratorMain { public static void main(String[] args) throws GeneratorException { new GeneratorMain(args).run(); } GeneratorMain(String[] args); static void main(String[] args); void run();  }
@Test(expected = RuntimeException.class) public void testInvalidArgs() throws GeneratorException { GeneratorMain.main(new String[]{"--invalid"}); }
@Test(expected = IllegalArgumentException.class) public void testNullClassname() throws GeneratorException { GeneratorMain.main(new String[]{ "-d", "destdir", "-l", "en_US" }); }
@Test(expected = IllegalArgumentException.class) public void testNullDestDir() throws GeneratorException { GeneratorMain.main(new String[]{ "-c", TestApplication.class.getName(), "-l", "en_US" }); }
@Test(expected = IllegalArgumentException.class) public void testInvalidLocale() throws GeneratorException { GeneratorMain.main(new String[]{ "-c", TestApplication.class.getName(), "-d", "destdir", "-l", "invalid" }); }
@Test(expected = GeneratorException.class) public void testClassNotFound() throws GeneratorException { GeneratorMain.main(new String[]{ "-c", "ClassNotFound", "-d", "destdir", "-l", "en_US" }); }