@Test public void failCompileTest() throws IOException { CompilationRequest req = new DefaultCompilationRequest(mavenRepoPath, createdNewPrjInRepo("dummy-fail", ResourcesConstants.DUMMY_FAIL_DEPS_SIMPLE), new String[]{ MavenCLIArgs.COMPILE, MavenCLIArgs.ALTERNATE_USER_SETTINGS + alternateSettingsAbsPath }, Boolean.FALSE); ClasspathDepsAfterDecorator decorator = new ClasspathDepsAfterDecorator(new BaseMavenCompiler(false,false)); CompilationResponse res = decorator.compile(req); SoftAssertions.assertSoftly(softly -> { softly.assertThat(res.isSuccessful()).isFalse(); softly.assertThat(res.getDependencies()).hasSize(0); }); }
@Override public CompilationResponse compile(CompilationRequest req) { T res = compiler.compile(req); return handleClasspath(req, res); }
ClasspathDepsAfterDecorator implements CompilerDecorator { @Override public CompilationResponse compile(CompilationRequest req) { T res = compiler.compile(req); return handleClasspath(req, res); } }
ClasspathDepsAfterDecorator implements CompilerDecorator { @Override public CompilationResponse compile(CompilationRequest req) { T res = compiler.compile(req); return handleClasspath(req, res); } ClasspathDepsAfterDecorator(C compiler); }
ClasspathDepsAfterDecorator implements CompilerDecorator { @Override public CompilationResponse compile(CompilationRequest req) { T res = compiler.compile(req); return handleClasspath(req, res); } ClasspathDepsAfterDecorator(C compiler); C getCompiler(); @Override Boolean cleanInternalCache(); @Override CompilationResponse compile(CompilationRequest req); @Override CompilationResponse compile(CompilationRequest req, Map override); }
ClasspathDepsAfterDecorator implements CompilerDecorator { @Override public CompilationResponse compile(CompilationRequest req) { T res = compiler.compile(req); return handleClasspath(req, res); } ClasspathDepsAfterDecorator(C compiler); C getCompiler(); @Override Boolean cleanInternalCache(); @Override CompilationResponse compile(CompilationRequest req); @Override CompilationResponse compile(CompilationRequest req, Map override);  }