@Test public void compileWithouKieMavenPlugin() throws Exception { CompilationRequest req = new DefaultCompilationRequest(mavenRepoPath, createdNewPrjInRepo("normal-dummy", ResourcesConstants.DUMMY), new String[]{MavenCLIArgs.COMPILE, MavenCLIArgs.ALTERNATE_USER_SETTINGS + alternateSettingsAbsPath}, Boolean.FALSE); KieAfterDecorator decorator = new KieAfterDecorator(new BaseMavenCompiler(false,false)); KieCompilationResponse kieRes = (KieCompilationResponse) decorator.compile(req); SoftAssertions.assertSoftly(softly -> { softly.assertThat(kieRes.isSuccessful()).isTrue(); softly.assertThat(kieRes.getMavenOutput()).isEmpty(); softly.assertThat(kieRes.getKieModule()).isNotNull(); softly.assertThat(kieRes.getKieModuleMetaInfo()).isNotNull(); }); }
@Override public T compile(CompilationRequest req) { T res = compiler.compile(req); return handleAfter(req, res); }
KieAfterDecorator implements CompilerDecorator { @Override public T compile(CompilationRequest req) { T res = compiler.compile(req); return handleAfter(req, res); } }
KieAfterDecorator implements CompilerDecorator { @Override public T compile(CompilationRequest req) { T res = compiler.compile(req); return handleAfter(req, res); } KieAfterDecorator(C compiler); }
KieAfterDecorator implements CompilerDecorator { @Override public T compile(CompilationRequest req) { T res = compiler.compile(req); return handleAfter(req, res); } KieAfterDecorator(C compiler); C getCompiler(); @Override Boolean cleanInternalCache(); @Override T compile(CompilationRequest req); @Override CompilationResponse compile(CompilationRequest req, Map override); }
KieAfterDecorator implements CompilerDecorator { @Override public T compile(CompilationRequest req) { T res = compiler.compile(req); return handleAfter(req, res); } KieAfterDecorator(C compiler); C getCompiler(); @Override Boolean cleanInternalCache(); @Override T compile(CompilationRequest req); @Override CompilationResponse compile(CompilationRequest req, Map override);  }