use of org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse in project kie-wb-common by kiegroup.
the class DefaultKieCompilerServiceTest method buildRemoteAndInstallNonExistentProject.
@Test
public void buildRemoteAndInstallNonExistentProject() throws Exception {
AFCompilerService service = new DefaultKieCompilerService();
CompletableFuture<KieCompilationResponse> futureRes = service.buildAndInstall(tmpRoot.toAbsolutePath().toString(), 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 DefaultRemoteExecutorTest method buildAndInstallExistentProject.
@Test
@Ignore("https://issues.redhat.com/browse/AF-2892")
public void buildAndInstallExistentProject() throws Exception {
DefaultRemoteExecutor executor = new DefaultRemoteExecutor(executorService);
CompletableFuture<KieCompilationResponse> futureRes = executor.buildAndInstall(Paths.get(tmpRoot.toAbsolutePath() + "/dummy").toAbsolutePath().toString(), mavenRepoPath, TestUtilMaven.getSettingsFile());
KieCompilationResponse res = futureRes.get();
assertThat(res.isSuccessful()).isTrue();
assertThat(res.getDependencies()).isNotEmpty();
assertThat(res.getDependencies().size()).isGreaterThan(0);
}
use of org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse in project kie-wb-common by kiegroup.
the class DefaultRemoteExecutorTest method buildNonExistentProject.
@Test
public void buildNonExistentProject() throws Exception {
DefaultRemoteExecutor executor = new DefaultRemoteExecutor(executorService);
CompletableFuture<KieCompilationResponse> futureRes = executor.build(tmpRoot.toAbsolutePath().toString(), 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 DefaultRemoteExecutorTest method buildAndInstallSkipDepsNonExistentProject.
@Test
public void buildAndInstallSkipDepsNonExistentProject() throws Exception {
DefaultRemoteExecutor executor = new DefaultRemoteExecutor(executorService);
CompletableFuture<KieCompilationResponse> futureRes = executor.buildAndInstall(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 buildExistentProject.
@Test
@Ignore("https://issues.redhat.com/browse/AF-2892")
public void buildExistentProject() throws Exception {
DefaultRemoteExecutor executor = new DefaultRemoteExecutor(executorService);
CompletableFuture<KieCompilationResponse> futureRes = executor.build(Paths.get(tmpRoot.toAbsolutePath() + "/dummy").toAbsolutePath().toString(), mavenRepoPath, TestUtilMaven.getSettingsFile());
KieCompilationResponse res = futureRes.get();
assertThat(res.isSuccessful()).isTrue();
}
Aggregations