Skip to content

Commit

Permalink
Migrate test utils to improve reusability
Browse files Browse the repository at this point in the history
  • Loading branch information
proksch committed Nov 18, 2022
1 parent 4451533 commit a347ec6
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 223 deletions.
1 change: 0 additions & 1 deletion analyzer/callable-index/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

<groupId>eu.fasten.analyzer</groupId>
<artifactId>callable-index</artifactId>
<version>0.0.15-SNAPSHOT</version>
<packaging>jar</packaging>

<name>callable-index</name>
Expand Down
19 changes: 7 additions & 12 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
<description>Manages the FASTEN graph and metadata storage.</description>

<dependencies>
<dependency>
<groupId>dev.c0ps</groupId>
<artifactId>test-utils</artifactId>
<version>0.0.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.pf4j</groupId>
<artifactId>pf4j</artifactId>
Expand Down Expand Up @@ -255,12 +261,6 @@
<version>1.14.3</version>
<scope>test</scope>
</dependency>
<dependency> <!-- For environment variables -->
<groupId>com.github.stefanbirkner</groupId>
<artifactId>system-lambda</artifactId>
<version>1.1.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-invoker</artifactId>
Expand Down Expand Up @@ -309,11 +309,6 @@
<artifactId>jersey-client</artifactId>
<version>3.0.3</version>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.inject</groupId>
<artifactId>jersey-hk2</artifactId>
<version>3.0.3</version>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-json-jackson</artifactId>
Expand Down Expand Up @@ -412,4 +407,4 @@
<url>https://github.com/fasten-project/shrinkwrap-resolver-patched/raw/repository</url>
</repository>
</repositories>
</project>
</project>
208 changes: 0 additions & 208 deletions core/src/test/java/eu/f4sten/test/HttpTestServer.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

import eu.f4sten.test.HttpTestServer;
import eu.f4sten.test.HttpTestServer.Request;
import dev.c0ps.test.HttpTestServer;
import dev.c0ps.test.HttpTestServer.Request;
import eu.fasten.core.maven.data.ResolvedRevision;
import eu.fasten.core.maven.data.Revision;

Expand Down
10 changes: 10 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,16 @@
</plugin>
</plugins>
</reporting>

<repositories>
<repository>
<id>github</id>
<url>https://maven.pkg.github.com/cops-lab/test-utils/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>

<distributionManagement>
<repository>
Expand Down

0 comments on commit a347ec6

Please sign in to comment.