use of org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse in project kie-wb-common by kiegroup.
the class DefaultKieCompilerServiceTest method buildRemoteNonExistentProject.
/**
* Remote
*/
@Test
public void buildRemoteNonExistentProject() throws Exception {
AFCompilerService service = new DefaultKieCompilerService();
CompletableFuture<KieCompilationResponse> futureRes = service.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 DefaultKieCompilerServiceTest method buildRemoteSpecializedNonExistentProject.
@Test
public void buildRemoteSpecializedNonExistentProject() throws Exception {
AFCompilerService service = new DefaultKieCompilerService();
CompletableFuture<KieCompilationResponse> futureRes = service.buildSpecialized(Paths.get(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 DefaultKieCompilerServiceTest method buildAndInstallExistentProject.
@Test
@Ignore("https://issues.redhat.com/browse/AF-2892")
public void buildAndInstallExistentProject() throws Exception {
AFCompilerService service = new DefaultKieCompilerService();
CompletableFuture<KieCompilationResponse> futureRes = service.buildAndInstall(Paths.get(tmpRoot.toAbsolutePath() + "/dummy"), 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 DefaultKieCompilerServiceTest method buildSpecializedSkipDepsNonExistentProject.
@Test
public void buildSpecializedSkipDepsNonExistentProject() throws Exception {
AFCompilerService service = new DefaultKieCompilerService();
CompletableFuture<KieCompilationResponse> futureRes = service.buildSpecialized(tmpRoot, 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 DefaultKieCompilerServiceTest method buildRemoteAndSkipDepsNonExistentProject.
@Test
public void buildRemoteAndSkipDepsNonExistentProject() throws Exception {
AFCompilerService service = new DefaultKieCompilerService();
CompletableFuture<KieCompilationResponse> futureRes = service.build(tmpRoot.toAbsolutePath().toString(), mavenRepoPath, TestUtilMaven.getSettingsFile(), Boolean.FALSE);
KieCompilationResponse res = futureRes.get();
assertThat(res.isSuccessful()).isFalse();
assertThat(res.getDependencies()).isEmpty();
}
Aggregations