Reworked multipleReposTest with repo links that work.
@@ -336,10 +336,16 @@ public class DataExtractorTest {
@Test
public void multipleReposTest() {
this.dataExtractor = new DataExtractor(List.of("https://repo.maven.apache.org/maven2/"));
- var result = this.dataExtractor.extractDependencyData("org.tmatesoft.hg4j", "hg4j", "1.1.0-RELEASE");
- assertEquals(new DependencyData(new DependencyManagement(new ArrayList<>()), new ArrayList<>()), result);
- this.dataExtractor = new DataExtractor(List.of("https://repo.maven.apache.org/maven2/", "https://maven.tmatesoft.com/content/repositories/releases/"));
- result = this.dataExtractor.extractDependencyData("org.tmatesoft.hg4j", "hg4j", "1.1.0-RELEASE");
+ var result = this.dataExtractor.extractDependencyData("abbot", "abbot", "1.4.0");
+ assertEquals(new DependencyData(new DependencyManagement(new ArrayList<>()), List.of(new Dependency("junit", "junit", "4.8.2", new ArrayList<>(), "test", false, "", ""))), result);
+ this.dataExtractor = new DataExtractor(List.of("https://repository.jboss.org/nexus/content/repositories/public-jboss/"));
+ result = this.dataExtractor.extractDependencyData("abbot", "abbot", "1.4.0");
+ assertEquals(new DependencyData(new DependencyManagement(new ArrayList<>()), List.of(new Dependency("junit", "junit", "4.8.2", new ArrayList<>(), "test", false, "", ""))), result);
+ this.dataExtractor = new DataExtractor(List.of("https://repo.maven.apache.org/maven2/", "https://repository.jboss.org/nexus/content/repositories/public-jboss/"));
+ result = this.dataExtractor.extractDependencyData("abbot", "abbot", "1.4.0");
+ assertEquals(new DependencyData(new DependencyManagement(new ArrayList<>()), List.of(new Dependency("junit", "junit", "4.8.2", new ArrayList<>(), "test", false, "", ""))), result);
+ this.dataExtractor = new DataExtractor(List.of("https://repository.jboss.org/nexus/content/repositories/public-jboss/", "https://repo.maven.apache.org/maven2/"));
+ result = this.dataExtractor.extractDependencyData("abbot", "abbot", "1.4.0");
assertEquals(new DependencyData(new DependencyManagement(new ArrayList<>()), List.of(new Dependency("junit", "junit", "4.8.2", new ArrayList<>(), "test", false, "", ""))), result);
}
