use of org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse in project kie-wb-common by kiegroup.
the class DefaultLocalExecutorTest method buildWithOverrideExistentProject.
@Test
@Ignore("https://issues.redhat.com/browse/AF-2892")
public void buildWithOverrideExistentProject() 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(Paths.get(tmpRoot.toAbsolutePath() + "/dummy"), mavenRepoPath, TestUtilMaven.getSettingsFile(), override);
KieCompilationResponse res = futureRes.get();
assertThat(res.isSuccessful()).isTrue();
}
use of org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse in project kie-wb-common by kiegroup.
the class DefaultKieCompilerServiceTest method buildRemoteSpecializedSkipDepsExistentProject.
@Test
@Ignore("https://issues.redhat.com/browse/AF-2892")
public void buildRemoteSpecializedSkipDepsExistentProject() throws Exception {
AFCompilerService service = new DefaultKieCompilerService();
CompletableFuture<KieCompilationResponse> futureRes = service.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();
}
use of org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse in project kie-wb-common by kiegroup.
the class DefaultKieCompilerServiceTest method buildRemoteAndInstallSkipDepsExistentProject.
@Test
@Ignore("https://issues.redhat.com/browse/AF-2892")
public void buildRemoteAndInstallSkipDepsExistentProject() throws Exception {
AFCompilerService service = new DefaultKieCompilerService();
CompletableFuture<KieCompilationResponse> futureRes = service.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 DefaultKieCompilerServiceTest method buildRemoteAndInstallSkipDepsNonExistentProject.
@Test
public void buildRemoteAndInstallSkipDepsNonExistentProject() throws Exception {
AFCompilerService service = new DefaultKieCompilerService();
CompletableFuture<KieCompilationResponse> futureRes = service.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 DefaultKieCompilerServiceTest method buildExistentProject.
@Test
@Ignore("https://issues.redhat.com/browse/AF-2892")
public void buildExistentProject() throws Exception {
AFCompilerService service = new DefaultKieCompilerService();
CompletableFuture<KieCompilationResponse> futureRes = service.build(Paths.get(tmpRoot.toAbsolutePath() + "/dummy"), mavenRepoPath, TestUtilMaven.getSettingsFile());
KieCompilationResponse res = futureRes.get();
assertThat(res.isSuccessful()).isTrue();
}
Aggregations