@Test public void testBasic() throws Exception { File basedir = resources.getBasedir("basic"); GenerateMojo generate = (GenerateMojo) maven.lookupConfiguredMojo(maven.newMavenSession(maven.readMavenProject(basedir)), maven.newMojoExecution("generate")); assertThat(generate.getPackages()).containsOnly("com.test.model"); }
List<String> getPackages() { return packages; }
GenerateMojo extends AbstractMojo { List<String> getPackages() { return packages; } }
GenerateMojo extends AbstractMojo { List<String> getPackages() { return packages; }  }
GenerateMojo extends AbstractMojo { List<String> getPackages() { return packages; }  void execute(); }
GenerateMojo extends AbstractMojo { List<String> getPackages() { return packages; }  void execute();  }