@Test public void check_Plugin_Dependency_ReleaseNotes() throws Exception { DocumentBuilderFactory factory = mock(DocumentBuilderFactory.class); DocumentBuilder documentBuilder = mock(DocumentBuilder.class); when(factory.newDocumentBuilder()).thenReturn(documentBuilder); when(documentBuilder.parse(any(InputStream.class))).thenReturn(getDocument(versionInfo)); DependencyInfo dependencyInfo = new DependencyInfo( "nl.praegus", "toolchain-fitnesse-plugin", "1.0.0", getModel(), factory); assertThat(dependencyInfo.getReleaseNoteUrls()).containsOnly(ReleaseNotesUrl.pluginUrl, ReleaseNotesUrl.bootstrapUrl); }
public List<String> getReleaseNoteUrls() { List<String> ReleaseNotesUrls = new ArrayList<>(); switch (artifactId) { case "fitnesse": ReleaseNotesUrls.add(ReleaseNotesUrl.fitnesseUrl); return ReleaseNotesUrls; case "hsac-fitnesse-fixtures": ReleaseNotesUrls.add(ReleaseNotesUrl.hsacUrl); return ReleaseNotesUrls; case "toolchain-fitnesse-plugin": ReleaseNotesUrls.add(ReleaseNotesUrl.pluginUrl); ReleaseNotesUrls.add(ReleaseNotesUrl.bootstrapUrl); return ReleaseNotesUrls; default: return ReleaseNotesUrls; } }
DependencyInfo { public List<String> getReleaseNoteUrls() { List<String> ReleaseNotesUrls = new ArrayList<>(); switch (artifactId) { case "fitnesse": ReleaseNotesUrls.add(ReleaseNotesUrl.fitnesseUrl); return ReleaseNotesUrls; case "hsac-fitnesse-fixtures": ReleaseNotesUrls.add(ReleaseNotesUrl.hsacUrl); return ReleaseNotesUrls; case "toolchain-fitnesse-plugin": ReleaseNotesUrls.add(ReleaseNotesUrl.pluginUrl); ReleaseNotesUrls.add(ReleaseNotesUrl.bootstrapUrl); return ReleaseNotesUrls; default: return ReleaseNotesUrls; } } }
DependencyInfo { public List<String> getReleaseNoteUrls() { List<String> ReleaseNotesUrls = new ArrayList<>(); switch (artifactId) { case "fitnesse": ReleaseNotesUrls.add(ReleaseNotesUrl.fitnesseUrl); return ReleaseNotesUrls; case "hsac-fitnesse-fixtures": ReleaseNotesUrls.add(ReleaseNotesUrl.hsacUrl); return ReleaseNotesUrls; case "toolchain-fitnesse-plugin": ReleaseNotesUrls.add(ReleaseNotesUrl.pluginUrl); ReleaseNotesUrls.add(ReleaseNotesUrl.bootstrapUrl); return ReleaseNotesUrls; default: return ReleaseNotesUrls; } } DependencyInfo(String pluginGroup, String pluginArtifact);  DependencyInfo(String groupId, String artifactId, String versionInPom, Model mavenModel);  DependencyInfo(String groupId, String artifactId, String versionInPom, Model mavenModel, DocumentBuilderFactory factory); }
DependencyInfo { public List<String> getReleaseNoteUrls() { List<String> ReleaseNotesUrls = new ArrayList<>(); switch (artifactId) { case "fitnesse": ReleaseNotesUrls.add(ReleaseNotesUrl.fitnesseUrl); return ReleaseNotesUrls; case "hsac-fitnesse-fixtures": ReleaseNotesUrls.add(ReleaseNotesUrl.hsacUrl); return ReleaseNotesUrls; case "toolchain-fitnesse-plugin": ReleaseNotesUrls.add(ReleaseNotesUrl.pluginUrl); ReleaseNotesUrls.add(ReleaseNotesUrl.bootstrapUrl); return ReleaseNotesUrls; default: return ReleaseNotesUrls; } } DependencyInfo(String pluginGroup, String pluginArtifact);  DependencyInfo(String groupId, String artifactId, String versionInPom, Model mavenModel);  DependencyInfo(String groupId, String artifactId, String versionInPom, Model mavenModel, DocumentBuilderFactory factory); String getArtifactId(); String getVersionInPom(); String getVersionOnMvnCentral(); List<String> getReleaseNoteUrls(); }
DependencyInfo { public List<String> getReleaseNoteUrls() { List<String> ReleaseNotesUrls = new ArrayList<>(); switch (artifactId) { case "fitnesse": ReleaseNotesUrls.add(ReleaseNotesUrl.fitnesseUrl); return ReleaseNotesUrls; case "hsac-fitnesse-fixtures": ReleaseNotesUrls.add(ReleaseNotesUrl.hsacUrl); return ReleaseNotesUrls; case "toolchain-fitnesse-plugin": ReleaseNotesUrls.add(ReleaseNotesUrl.pluginUrl); ReleaseNotesUrls.add(ReleaseNotesUrl.bootstrapUrl); return ReleaseNotesUrls; default: return ReleaseNotesUrls; } } DependencyInfo(String pluginGroup, String pluginArtifact);  DependencyInfo(String groupId, String artifactId, String versionInPom, Model mavenModel);  DependencyInfo(String groupId, String artifactId, String versionInPom, Model mavenModel, DocumentBuilderFactory factory); String getArtifactId(); String getVersionInPom(); String getVersionOnMvnCentral(); List<String> getReleaseNoteUrls();  }