Search in sources :

Example 1 with AndroidTestsScope

use of com.android.tools.idea.testartifacts.scopes.TestArtifactCustomScopeProvider.AndroidTestsScope in project android by JetBrains.

the class TestArtifactCustomScopeTest method ignore_testAndroidTestFileColor.

// see comments on http://ag/1025651
public void ignore_testAndroidTestFileColor() throws Exception {
    VirtualFile file = findRelativeFile("app/src/androidTest/java/google/simpleapplication/ApplicationTest.java", getProject().getBaseDir());
    assertNotNull(file);
    AndroidTestsScope scope = new AndroidTestsScope();
    PackageSetBase packageSet = (PackageSetBase) scope.getValue();
    assertNotNull(packageSet);
    assertTrue(packageSet.contains(file, getProject(), null));
}
Also used : VirtualFile(com.intellij.openapi.vfs.VirtualFile) AndroidTestsScope(com.android.tools.idea.testartifacts.scopes.TestArtifactCustomScopeProvider.AndroidTestsScope) PackageSetBase(com.intellij.psi.search.scope.packageSet.PackageSetBase)

Aggregations

AndroidTestsScope (com.android.tools.idea.testartifacts.scopes.TestArtifactCustomScopeProvider.AndroidTestsScope)1 VirtualFile (com.intellij.openapi.vfs.VirtualFile)1 PackageSetBase (com.intellij.psi.search.scope.packageSet.PackageSetBase)1