@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); }
public static <T extends CompilationResponse> AFCompiler<T> getCompiler(Set<KieDecorator> decorators) { return createAndAddNewCompiler(decorators); }
KieMavenCompilerFactory { public static <T extends CompilationResponse> AFCompiler<T> getCompiler(Set<KieDecorator> decorators) { return createAndAddNewCompiler(decorators); } }
KieMavenCompilerFactory { public static <T extends CompilationResponse> AFCompiler<T> getCompiler(Set<KieDecorator> decorators) { return createAndAddNewCompiler(decorators); } private  KieMavenCompilerFactory(); }
KieMavenCompilerFactory { public static <T extends CompilationResponse> AFCompiler<T> getCompiler(Set<KieDecorator> decorators) { return createAndAddNewCompiler(decorators); } private  KieMavenCompilerFactory(); static AFCompiler<T> getCompiler(Set<KieDecorator> decorators); }
KieMavenCompilerFactory { public static <T extends CompilationResponse> AFCompiler<T> getCompiler(Set<KieDecorator> decorators) { return createAndAddNewCompiler(decorators); } private  KieMavenCompilerFactory(); static AFCompiler<T> getCompiler(Set<KieDecorator> decorators);  }