use of com.google.devtools.intellij.IntellijAspectTestFixtureOuterClass.IntellijAspectTestFixture in project intellij by bazelbuild.
the class TagTest method testTags.
@Test
public void testTags() throws Exception {
IntellijAspectTestFixture testFixture = loadTestFixture(":tags_fixture");
TargetIdeInfo targetIdeInfo = findTarget(testFixture, ":foo");
assertThat(targetIdeInfo.getTagsList()).containsExactly("a", "b", "c", "d");
}
use of com.google.devtools.intellij.IntellijAspectTestFixtureOuterClass.IntellijAspectTestFixture in project intellij by bazelbuild.
the class DependenciesTest method testRuntimeDeps.
@Test
public void testRuntimeDeps() throws Exception {
IntellijAspectTestFixture testFixture = loadTestFixture(":runtime_dep_lib_fixture");
// Make sure we propagated to foo
TargetIdeInfo foo = findTarget(testFixture, ":foo");
assertThat(foo).isNotNull();
// Make sure foo is added to runtime_deps
TargetIdeInfo lib = findTarget(testFixture, ":runtime_dep_lib");
assertThat(dependenciesForTarget(lib)).contains(runtimeDep(":foo"));
}
use of com.google.devtools.intellij.IntellijAspectTestFixtureOuterClass.IntellijAspectTestFixture in project intellij by bazelbuild.
the class FilteredGenJarTest method testFilteredGenJarNotCreatedForSourceOnlyRule.
@Test
public void testFilteredGenJarNotCreatedForSourceOnlyRule() throws Exception {
IntellijAspectTestFixture testFixture = loadTestFixture(":source_only_fixture");
TargetIdeInfo targetIdeInfo = findTarget(testFixture, ":source_only");
assertThat(targetIdeInfo.getJavaIdeInfo().hasFilteredGenJar()).isFalse();
}
use of com.google.devtools.intellij.IntellijAspectTestFixtureOuterClass.IntellijAspectTestFixture in project intellij by bazelbuild.
the class FilteredGenJarTest method testFilteredGenJarNotCreatedForOnlyGenRule.
@Test
public void testFilteredGenJarNotCreatedForOnlyGenRule() throws Exception {
IntellijAspectTestFixture testFixture = loadTestFixture(":gen_only_fixture");
TargetIdeInfo targetIdeInfo = findTarget(testFixture, ":gen_only");
assertThat(targetIdeInfo.getJavaIdeInfo().hasFilteredGenJar()).isFalse();
}
Aggregations