@Test public void compileTest() { CompilationRequest req = new DefaultCompilationRequest(mavenRepoPath, info, new String[]{MavenCLIArgs.COMPILE, MavenCLIArgs.ALTERNATE_USER_SETTINGS + alternateSettingsAbsPath}, Boolean.FALSE); OutputLogAfterDecorator decorator = new OutputLogAfterDecorator(new BaseMavenCompiler(true,true)); CompilationResponse res = decorator.compile(req); SoftAssertions.assertSoftly(softly -> { softly.assertThat(res.isSuccessful()).isTrue(); softly.assertThat(res.getMavenOutput().size()).isGreaterThan(0); }); }
@Override public T compile(CompilationRequest req) { T res = compiler.compile(req); return handleMavenOutput(req, res); }
OutputLogAfterDecorator implements CompilerDecorator { @Override public T compile(CompilationRequest req) { T res = compiler.compile(req); return handleMavenOutput(req, res); } }
OutputLogAfterDecorator implements CompilerDecorator { @Override public T compile(CompilationRequest req) { T res = compiler.compile(req); return handleMavenOutput(req, res); } OutputLogAfterDecorator(C compiler); }
OutputLogAfterDecorator implements CompilerDecorator { @Override public T compile(CompilationRequest req) { T res = compiler.compile(req); return handleMavenOutput(req, res); } OutputLogAfterDecorator(C compiler); C getCompiler(); @Override T compile(CompilationRequest req); @Override CompilationResponse compile(CompilationRequest req, Map override); @Override Boolean cleanInternalCache(); }
OutputLogAfterDecorator implements CompilerDecorator { @Override public T compile(CompilationRequest req) { T res = compiler.compile(req); return handleMavenOutput(req, res); } OutputLogAfterDecorator(C compiler); C getCompiler(); @Override T compile(CompilationRequest req); @Override CompilationResponse compile(CompilationRequest req, Map override); @Override Boolean cleanInternalCache();  }