BuckCompiler implements Compiler { @Override public CompileResult compile() throws Exception { if (BuckHotDeployBuilder.FetchMode.AUTOMATIC.equals(fetchMode)) { runProcess(5, TimeUnit.MINUTES, "buck", "fetch", buildTarget); } return runProcess(2, TimeUnit.MINUTES, "buck", "build", buildTarget); } BuckCompiler(String buildTarget, BuckHotDeployBuilder.FetchMode fetchMode, BuckPathResolver pathResolver); @Override CompileResult compile();  }
@Test public void build() throws Exception { final BuckPathResolver pathResolver = new BuckPathResolver( new HotDeployParameters() .withVerticleReference("io.dazraf.vertx.buck.test.App") .withBuildOutputDirectories(singletonList("buck-out/gen/test-project.jar")) .withCompileSourcePaths(singletonList("java")), of("target/test-classes/project"), " ); final BuckCompiler compiler = new BuckCompiler( " BuckHotDeployBuilder.FetchMode.MANUAL, pathResolver ); final CompileResult actual = compiler.compile(); assertEquals(pathResolver.getClasspath(), actual.getClassPath()); }