Search in sources :

Example 6 with SourceArtifact

use of com.google.idea.blaze.base.command.buildresult.SourceArtifact in project intellij by bazelbuild.

the class EmptyLibraryFilterTest method isEmpty_largeButOnlyManifestAndDirectories.

@Test
public void isEmpty_largeButOnlyManifestAndDirectories() throws IOException {
    File jar = JarBuilder.newEmptyJar(tempDirectory).addDirectory("dir1/").addDirectory("dir2/").addManifest().build();
    assertThat(EmptyLibraryFilter.isEmpty(new SourceArtifact(jar))).isTrue();
}
Also used : File(java.io.File) SourceArtifact(com.google.idea.blaze.base.command.buildresult.SourceArtifact) Test(org.junit.Test)

Aggregations

SourceArtifact (com.google.idea.blaze.base.command.buildresult.SourceArtifact)6 File (java.io.File)6 Test (org.junit.Test)6