GwtSourceFilter { public Set<String> getSourcePackages() { if (!initialized) { resolveSourcePackages(); initialized = true; } return new LinkedHashSet<>(sourcePackages); } GwtSourceFilter(
            Logger logger,
            Utils utils,
            String... moduleNames); String getApplicationPackage(); Set<String> getSourcePackages(); Set<E> filterElements(Set<E> elements); boolean elementIsPartOfGwtSource(Element element); void addModules(String[] moduleNames); void addModules(Collection<String> moduleNames); void addModule(String moduleName); static final String GWTP_MODULE_OPTION; }
@Test public void load_module1() { GwtSourceFilter filter = new GwtSourceFilter(logger, utils, MODULE1); assertThat(filter.getSourcePackages()).containsOnly( "com.gwtplatform.processors.tools.module1.client", "com.gwtplatform.processors.tools.module1.client.potatoes.red", "com.gwtplatform.processors.tools.module2.client", "com.gwtplatform.processors.tools.module2.shared", "com.gwtplatform.processors.tools.module3", MODULE4_SOURCE_PATH ); }
@Test public void load_module4() { GwtSourceFilter filter = new GwtSourceFilter(logger, utils, MODULE4); assertThat(filter.getSourcePackages()).containsOnly(MODULE4_SOURCE_PATH); }