Search in sources :

Example 1 with UnitTestsScope

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

the class TestArtifactCustomScopeTest method testUnitTestFileColor.

public void testUnitTestFileColor() throws Exception {
    VirtualFile file = findRelativeFile("app/src/test/java/google/simpleapplication/UnitTest.java", getProject().getBaseDir());
    assertNotNull(file);
    UnitTestsScope scope = new UnitTestsScope();
    PackageSetBase packageSet = (PackageSetBase) scope.getValue();
    assertNotNull(packageSet);
    assertTrue(packageSet.contains(file, getProject(), null));
}
Also used : VirtualFile(com.intellij.openapi.vfs.VirtualFile) UnitTestsScope(com.android.tools.idea.testartifacts.scopes.TestArtifactCustomScopeProvider.UnitTestsScope) PackageSetBase(com.intellij.psi.search.scope.packageSet.PackageSetBase)

Aggregations

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