Search in sources :

Example 1 with TestCustomZipOutputStream

use of com.facebook.buck.testutil.TestCustomZipOutputStream in project buck by facebook.

the class JavaInMemoryFileManagerTest method setUp.

@Before
public void setUp() {
    outputStream = new TestCustomZipOutputStream();
    DiagnosticCollector<JavaFileObject> diagnostics = new DiagnosticCollector<>();
    inMemoryFileManager = new JavaInMemoryFileManager(ToolProvider.getSystemJavaCompiler().getStandardFileManager(diagnostics, null, null), Paths.get(URI.create("file:///tmp/test.jar!/")), outputStream, /*classesToBeRemovedFromJar */
    ImmutableSet.of());
}
Also used : JavaFileObject(javax.tools.JavaFileObject) DiagnosticCollector(javax.tools.DiagnosticCollector) TestCustomZipOutputStream(com.facebook.buck.testutil.TestCustomZipOutputStream) Before(org.junit.Before)

Example 2 with TestCustomZipOutputStream

use of com.facebook.buck.testutil.TestCustomZipOutputStream in project buck by facebook.

the class JavaInMemoryFileObjectTest method setUp.

@Before
public void setUp() {
    outputStream = new TestCustomZipOutputStream();
    semaphore = new Semaphore(1);
}
Also used : Semaphore(java.util.concurrent.Semaphore) TestCustomZipOutputStream(com.facebook.buck.testutil.TestCustomZipOutputStream) Before(org.junit.Before)

Aggregations

TestCustomZipOutputStream (com.facebook.buck.testutil.TestCustomZipOutputStream)2 Before (org.junit.Before)2 Semaphore (java.util.concurrent.Semaphore)1 DiagnosticCollector (javax.tools.DiagnosticCollector)1 JavaFileObject (javax.tools.JavaFileObject)1