protected void assertGeneratedSources(String moduleName, String... expectedSources) { ContentEntry contentRoot = getContentRoot(moduleName); List<ContentFolder> folders = new ArrayList<ContentFolder>(); for (SourceFolder folder : contentRoot.getSourceFolders(JavaSourceRootType.SOURCE)) { JavaSourceRootProperties properties = folder.getJpsElement().getProperties(JavaSourceRootType.SOURCE); assertNotNull(properties); if (properties.isForGeneratedSources()) { folders.add(folder); } } doAssertContentFolders(contentRoot, folders, expectedSources); }
private void doAssertContentFolders( String moduleName, @NotNull JpsModuleSourceRootType<?> rootType, String... expected) { ContentEntry contentRoot = getContentRoot(moduleName); doAssertContentFolders(contentRoot, contentRoot.getSourceFolders(rootType), expected); }