@Test public void cleanHistoryTest() { assertThat(editor.getHistory()).isEmpty(); CompilationRequest req = new DefaultCompilationRequest(mavenRepoPath, info, new String[]{MavenCLIArgs.COMPILE, MavenCLIArgs.ALTERNATE_USER_SETTINGS + alternateSettingsAbsPath}, Boolean.FALSE); editor.write(Paths.get(tmpRoot.toAbsolutePath() + "/dummy/pom.xml"), req); assertThat(editor.getHistory()).isNotEmpty(); editor.cleanHistory(); assertThat(editor.getHistory()).isEmpty(); }
@Override public Boolean cleanHistory() { history.clear(); return Boolean.TRUE; }
DefaultPomEditor implements PomEditor { @Override public Boolean cleanHistory() { history.clear(); return Boolean.TRUE; } }
DefaultPomEditor implements PomEditor { @Override public Boolean cleanHistory() { history.clear(); return Boolean.TRUE; } DefaultPomEditor(Set<PomPlaceHolder> history,
                            ConfigurationProvider config); }
DefaultPomEditor implements PomEditor { @Override public Boolean cleanHistory() { history.clear(); return Boolean.TRUE; } DefaultPomEditor(Set<PomPlaceHolder> history,
                            ConfigurationProvider config); Set<PomPlaceHolder> getHistory(); @Override Boolean cleanHistory(); PomPlaceHolder readSingle(Path pom); boolean write(Path pom,
                         CompilationRequest request); }
DefaultPomEditor implements PomEditor { @Override public Boolean cleanHistory() { history.clear(); return Boolean.TRUE; } DefaultPomEditor(Set<PomPlaceHolder> history,
                            ConfigurationProvider config); Set<PomPlaceHolder> getHistory(); @Override Boolean cleanHistory(); PomPlaceHolder readSingle(Path pom); boolean write(Path pom,
                         CompilationRequest request); final String POM; final String TRUE; final String POM_NAME; final String KJAR_EXT; }