use of org.kie.workbench.common.services.backend.compiler.AFCompiler in project kie-wb-common by kiegroup.
the class KieMavenCompilerFactoryTest method jgitBeforeAndKieAfterDecoratorTest.
@Test
public void jgitBeforeAndKieAfterDecoratorTest() {
final AFCompiler jgitBeforeAndLogAfter = KieMavenCompilerFactory.getCompiler(EnumSet.of(KieDecorator.UPDATE_JGIT_BEFORE_BUILD, KieDecorator.STORE_KIE_OBJECTS));
assertThat(jgitBeforeAndLogAfter).isInstanceOf(JGITCompilerBeforeDecorator.class);
AFCompiler kieAfterDecorator = ((JGITCompilerBeforeDecorator) jgitBeforeAndLogAfter).getCompiler();
assertThat(kieAfterDecorator).isInstanceOf(KieAfterDecorator.class);
AFCompiler baseMavenCompiler = ((KieAfterDecorator) kieAfterDecorator).getCompiler();
assertThat(baseMavenCompiler).isInstanceOf(BaseMavenCompiler.class);
}
use of org.kie.workbench.common.services.backend.compiler.AFCompiler in project kie-wb-common by kiegroup.
the class KieMavenCompilerFactoryTest method kieLogAndClasspathDepsAfterTest.
@Test
public void kieLogAndClasspathDepsAfterTest() {
final AFCompiler kieAfterDecorator = KieMavenCompilerFactory.getCompiler(EnumSet.of(KieDecorator.STORE_KIE_OBJECTS, KieDecorator.ENABLE_LOGGING, KieDecorator.STORE_BUILD_CLASSPATH));
assertThat(kieAfterDecorator).isInstanceOf(KieAfterDecorator.class);
AFCompiler outputLofAfterDecorator = ((KieAfterDecorator) kieAfterDecorator).getCompiler();
assertThat(outputLofAfterDecorator).isInstanceOf(OutputLogAfterDecorator.class);
AFCompiler classpathAfter = ((OutputLogAfterDecorator) outputLofAfterDecorator).getCompiler();
assertThat(classpathAfter).isInstanceOf(ClasspathDepsAfterDecorator.class);
AFCompiler baseMavenCompiler = ((ClasspathDepsAfterDecorator) classpathAfter).getCompiler();
assertThat(baseMavenCompiler).isInstanceOf(BaseMavenCompiler.class);
}
use of org.kie.workbench.common.services.backend.compiler.AFCompiler in project kie-wb-common by kiegroup.
the class KieMavenCompilerFactoryTest method kieAndLogAfterDecoratorTest.
@Test
public void kieAndLogAfterDecoratorTest() {
final AFCompiler kieAfterDecorator = KieMavenCompilerFactory.getCompiler(EnumSet.of(KieDecorator.STORE_KIE_OBJECTS, KieDecorator.ENABLE_LOGGING));
assertThat(kieAfterDecorator).isInstanceOf(KieAfterDecorator.class);
AFCompiler outputLofAfterDecorator = ((KieAfterDecorator) kieAfterDecorator).getCompiler();
assertThat(outputLofAfterDecorator).isInstanceOf(OutputLogAfterDecorator.class);
AFCompiler baseMavenCompiler = ((OutputLogAfterDecorator) outputLofAfterDecorator).getCompiler();
assertThat(baseMavenCompiler).isInstanceOf(BaseMavenCompiler.class);
}
use of org.kie.workbench.common.services.backend.compiler.AFCompiler in project kie-wb-common by kiegroup.
the class KieMavenCompilerFactoryTest method kieAfterDecoratorTest.
@Test
public void kieAfterDecoratorTest() {
final AFCompiler kieAfter = KieMavenCompilerFactory.getCompiler(EnumSet.of(KieDecorator.STORE_KIE_OBJECTS));
assertThat(kieAfter).isInstanceOf(KieAfterDecorator.class);
}
use of org.kie.workbench.common.services.backend.compiler.AFCompiler in project kie-wb-common by kiegroup.
the class KieMavenCompilerFactoryTest method jgitBeforeAndLogAfterDecoratorTest.
@Test
public void jgitBeforeAndLogAfterDecoratorTest() {
final AFCompiler jgitBeforeAndLogAfter = KieMavenCompilerFactory.getCompiler(EnumSet.of(KieDecorator.UPDATE_JGIT_BEFORE_BUILD, KieDecorator.ENABLE_LOGGING));
assertThat(jgitBeforeAndLogAfter).isInstanceOf(JGITCompilerBeforeDecorator.class);
AFCompiler outputLofAfterDecorator = ((JGITCompilerBeforeDecorator) jgitBeforeAndLogAfter).getCompiler();
assertThat(outputLofAfterDecorator).isInstanceOf(OutputLogAfterDecorator.class);
AFCompiler baseMavenCompiler = ((OutputLogAfterDecorator) outputLofAfterDecorator).getCompiler();
assertThat(baseMavenCompiler).isInstanceOf(BaseMavenCompiler.class);
}
Aggregations