use of org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse in project kie-wb-common by kiegroup.
the class DefaultLocalExecutorTest method buildAndInstallNonExistentProject.
@Test
public void buildAndInstallNonExistentProject() throws Exception {
DefaultLocalExecutor executor = new DefaultLocalExecutor(executorService);
CompletableFuture<KieCompilationResponse> futureRes = executor.buildAndInstall(tmpRoot, mavenRepoPath, TestUtilMaven.getSettingsFile());
KieCompilationResponse res = futureRes.get();
assertThat(res.isSuccessful()).isFalse();
}
use of org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse in project kie-wb-common by kiegroup.
the class DefaultLocalExecutorTest method buildAndInstallSkipDepsNonExistentProject.
@Test
public void buildAndInstallSkipDepsNonExistentProject() throws Exception {
DefaultLocalExecutor executor = new DefaultLocalExecutor(executorService);
CompletableFuture<KieCompilationResponse> futureRes = executor.buildAndInstall(tmpRoot, mavenRepoPath, TestUtilMaven.getSettingsFile(), Boolean.FALSE);
KieCompilationResponse res = futureRes.get();
assertThat(res.isSuccessful()).isFalse();
assertThat(res.getDependencies()).isEmpty();
}
use of org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse in project kie-wb-common by kiegroup.
the class DefaultLocalExecutorTest method buildSpecializedNonExistentProject.
@Test
public void buildSpecializedNonExistentProject() throws Exception {
DefaultLocalExecutor executor = new DefaultLocalExecutor(executorService);
CompletableFuture<KieCompilationResponse> futureRes = executor.buildSpecialized(tmpRoot, mavenRepoPath, new String[] { MavenCLIArgs.ALTERNATE_USER_SETTINGS + TestUtilMaven.getSettingsFile(), MavenCLIArgs.COMPILE });
KieCompilationResponse res = futureRes.get();
assertThat(res.isSuccessful()).isFalse();
}
use of org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse in project kie-wb-common by kiegroup.
the class DefaultLocalExecutorTest method buildAndSkipDepsNonExistentProject.
@Test
public void buildAndSkipDepsNonExistentProject() throws Exception {
DefaultLocalExecutor executor = new DefaultLocalExecutor(executorService);
CompletableFuture<KieCompilationResponse> futureRes = executor.build(tmpRoot, mavenRepoPath, TestUtilMaven.getSettingsFile(), Boolean.FALSE);
KieCompilationResponse res = futureRes.get();
assertThat(res.isSuccessful()).isFalse();
assertThat(res.getDependencies()).isEmpty();
}
use of org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse in project kie-wb-common by kiegroup.
the class DefaultLocalExecutorTest method buildWithOverrideNonExistentProject.
@Test
public void buildWithOverrideNonExistentProject() throws Exception {
// change some files
Map<org.uberfire.java.nio.file.Path, InputStream> override = new HashMap<>();
org.uberfire.java.nio.file.Path path = org.uberfire.java.nio.file.Paths.get(tmpRoot + "/dummy/src/main/java/dummy/DummyOverride.java");
InputStream input = new FileInputStream(new File("target/test-classes/dummy_override/src/main/java/dummy/DummyOverride.java"));
override.put(path, input);
DefaultLocalExecutor executor = new DefaultLocalExecutor(executorService);
CompletableFuture<KieCompilationResponse> futureRes = executor.build(tmpRoot, mavenRepoPath, TestUtilMaven.getSettingsFile(), override);
KieCompilationResponse res = futureRes.get();
assertThat(res.isSuccessful()).isFalse();
}
Aggregations