@Override
protected void setUpContentEntries(@NotNull Collection<ContentEntry> contentEntries, @NotNull IdeaAndroidUnitTest androidUnitTest, @NotNull List<RootSourceFolder> orphans) {
JavaArtifact selectedTestJavaArtifact = androidUnitTest.getSelectedTestJavaArtifact();
if (selectedTestJavaArtifact != null) {
SourceProvider sourceProvider = selectedTestJavaArtifact.getVariantSourceProvider();
Collection<File> testSources = sourceProvider.getJavaDirectories();
for (File source : testSources) {
addSourceFolder(contentEntries, source, JavaSourceRootType.TEST_SOURCE, false, orphans);
}
Collection<File> testResources = sourceProvider.getResourcesDirectories();
for (File resource : testResources) {
addSourceFolder(contentEntries, resource, JavaResourceRootType.TEST_RESOURCE, false, orphans);
}
} else {
oldSetUpContentEntries(contentEntries, androidUnitTest, orphans);