use of org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse in project kie-wb-common by kiegroup.
the class DefaultRemoteExecutorTest method buildSpecializedSkipDepsNonExistentProject.
@Test
public void buildSpecializedSkipDepsNonExistentProject() throws Exception {
DefaultRemoteExecutor executor = new DefaultRemoteExecutor(executorService);
CompletableFuture<KieCompilationResponse> futureRes = executor.buildSpecialized(tmpRoot.toAbsolutePath().toString(), mavenRepoPath, new String[] { MavenCLIArgs.ALTERNATE_USER_SETTINGS + TestUtilMaven.getSettingsFile(), MavenCLIArgs.COMPILE }, Boolean.TRUE);
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 DefaultRemoteExecutorTest method buildSpecializedNonExistentProject.
@Test
public void buildSpecializedNonExistentProject() throws Exception {
DefaultRemoteExecutor executor = new DefaultRemoteExecutor(executorService);
CompletableFuture<KieCompilationResponse> futureRes = executor.buildSpecialized(tmpRoot.toAbsolutePath().toString(), 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 DefaultRemoteExecutorTest method buildAndSkipDepsNonExistentProject.
@Test
public void buildAndSkipDepsNonExistentProject() throws Exception {
DefaultRemoteExecutor executor = new DefaultRemoteExecutor(executorService);
CompletableFuture<KieCompilationResponse> futureRes = executor.build(tmpRoot.toAbsolutePath().toString(), 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 DefaultRemoteExecutorTest method buildAndInstallSkipDepsExistentProject.
@Test
@Ignore("https://issues.redhat.com/browse/AF-2892")
public void buildAndInstallSkipDepsExistentProject() throws Exception {
DefaultRemoteExecutor executor = new DefaultRemoteExecutor(executorService);
CompletableFuture<KieCompilationResponse> futureRes = executor.buildAndInstall(Paths.get(tmpRoot.toAbsolutePath() + "/dummy").toAbsolutePath().toString(), mavenRepoPath, TestUtilMaven.getSettingsFile(), Boolean.TRUE);
KieCompilationResponse res = futureRes.get();
assertThat(res.isSuccessful()).isTrue();
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 DefaultRemoteExecutorTest method buildSpecializedSkipDepsExistentProject.
@Test
@Ignore("https://issues.redhat.com/browse/AF-2892")
public void buildSpecializedSkipDepsExistentProject() throws Exception {
DefaultRemoteExecutor executor = new DefaultRemoteExecutor(executorService);
CompletableFuture<KieCompilationResponse> futureRes = executor.buildSpecialized(Paths.get(tmpRoot.toAbsolutePath() + "/dummy").toAbsolutePath().toString(), mavenRepoPath, new String[] { MavenCLIArgs.ALTERNATE_USER_SETTINGS + TestUtilMaven.getSettingsFile(), MavenCLIArgs.COMPILE }, Boolean.TRUE);
KieCompilationResponse res = futureRes.get();
assertThat(res.isSuccessful()).isTrue();
}
Aggregations