use of com.google.idea.blaze.base.run.producers.AllInPackageBlazeConfigurationProducer in project intellij by bazelbuild.
the class AllInPackageBlazeConfigurationProducerTest method testDirectoryWithoutBlazePackageChildIsIgnored.
@Test
public void testDirectoryWithoutBlazePackageChildIsIgnored() {
PsiDirectory directory = workspace.createPsiDirectory(new WorkspacePath("java/com/google/test"));
ConfigurationContext context = createContextFromPsi(directory);
AllInPackageBlazeConfigurationProducer producer = new AllInPackageBlazeConfigurationProducer();
assertThat(producer.createConfigurationFromContext(context)).isNull();
workspace.createPsiDirectory(new WorkspacePath("java/com/google/test/child_dir"));
workspace.createPsiFile(new WorkspacePath("java/com/google/test/child_dir/BUILD"));
assertThat(producer.createConfigurationFromContext(context)).isNotNull();
}
Aggregations