Skip to content

Commit

Permalink
Issue eclipse-ee4j#23507 JUnit5 and Hamcrest 2.2 are here
Browse files Browse the repository at this point in the history
- JUnit4 depends on old hamcrest, but is compatible even with the new one
  • Loading branch information
dmatej committed Aug 1, 2021
1 parent 949ead3 commit 8b5a170
Show file tree
Hide file tree
Showing 44 changed files with 239 additions and 31 deletions.
5 changes: 4 additions & 1 deletion appserver/admin/admin-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@
<artifactId>jakarta.el</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
</dependency>
</dependencies>

<profiles>
Expand Down
5 changes: 5 additions & 0 deletions appserver/admingui/common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,10 @@
<version>${project.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
</dependency>
</dependencies>
</project>
4 changes: 4 additions & 0 deletions appserver/appclient/client/acc-config/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-osgi</artifactId>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
</dependency>
</dependencies>

<build>
Expand Down
5 changes: 5 additions & 0 deletions appserver/appclient/client/acc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,11 @@
<groupId>jakarta.authorization</groupId>
<artifactId>jakarta.authorization-api</artifactId>
</dependency>

<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
</dependency>
</dependencies>

<build>
Expand Down
11 changes: 8 additions & 3 deletions appserver/common/annotation-framework/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,20 @@
<artifactId>glassfish-api</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.glassfish.main.common</groupId>
<artifactId>common-util</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>org.glassfish.hk2</groupId>
<artifactId>hk2-junitrunner</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.glassfish.main.common</groupId>
<artifactId>common-util</artifactId>
<version>${project.version}</version>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
</dependency>
</dependencies>
</project>
5 changes: 5 additions & 0 deletions appserver/common/glassfish-naming/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,10 @@
<artifactId>common-util</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
</dependency>
</dependencies>
</project>
4 changes: 4 additions & 0 deletions appserver/concurrent/concurrent-impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@
<version>${easymock.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
</dependency>
</dependencies>
</project>

4 changes: 4 additions & 0 deletions appserver/connectors/admin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@
<artifactId>jakarta.el</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
</dependency>
</dependencies>
</project>

17 changes: 11 additions & 6 deletions appserver/connectors/connectors-internal-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,6 @@
<artifactId>internal-api</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.glassfish.main.tests</groupId>
<artifactId>utils</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.glassfish.main.deployment</groupId>
<artifactId>dol</artifactId>
Expand All @@ -96,6 +90,17 @@
<artifactId>resources-connector</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>org.glassfish.main.tests</groupId>
<artifactId>utils</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
</dependency>
</dependencies>
</project>

4 changes: 4 additions & 0 deletions appserver/deployment/dol/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@
<version>${easymock.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
</dependency>
</dependencies>

<build>
Expand Down
4 changes: 4 additions & 0 deletions appserver/jdbc/admin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@
<artifactId>admin-util</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
</dependency>
</dependencies>
</project>

4 changes: 4 additions & 0 deletions appserver/jdbc/jdbc-runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,9 @@
<artifactId>jdbc-config</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
</dependency>
</dependencies>
</project>
4 changes: 4 additions & 0 deletions appserver/libpam4j/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
<version>4.5.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
</dependency>
</dependencies>

<build>
Expand Down
6 changes: 4 additions & 2 deletions appserver/orb/orb-connector/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,7 @@
<artifactId>management-api</artifactId>
</dependency>


<!-- TEST dependencies -->

<dependency>
<groupId>org.glassfish.main.cluster</groupId>
<artifactId>cluster-admin</artifactId>
Expand Down Expand Up @@ -149,6 +147,10 @@
<artifactId>jakarta.el</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
</dependency>
</dependencies>

<build>
Expand Down
4 changes: 4 additions & 0 deletions appserver/resources/mail/mail-connector/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@
<artifactId>jakarta.el</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
</dependency>
<dependency>
<groupId>org.glassfish.annotations</groupId>
<artifactId>logging-annotation-processor</artifactId>
Expand Down
4 changes: 4 additions & 0 deletions appserver/resources/resources-connector/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@
<artifactId>jakarta.el</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
</dependency>
</dependencies>
</project>

5 changes: 5 additions & 0 deletions appserver/security/core-ee/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,11 @@
<artifactId>logging-annotation-processor</artifactId>
<optional>true</optional>
</dependency>

<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
</dependency>
</dependencies>

<build>
Expand Down
4 changes: 4 additions & 0 deletions appserver/security/jaspic-provider-framework/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,9 @@
<groupId>jakarta.authorization</groupId>
<artifactId>jakarta.authorization-api</artifactId>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
</dependency>
</dependencies>
</project>
5 changes: 5 additions & 0 deletions appserver/web/web-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,10 @@
<artifactId>osgi.core</artifactId>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
</dependency>
</dependencies>
</project>
4 changes: 4 additions & 0 deletions appserver/web/weld-integration/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@
<version>${easymock.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
</dependency>
<dependency>
<groupId>org.glassfish.annotations</groupId>
<artifactId>logging-annotation-processor</artifactId>
Expand Down
4 changes: 4 additions & 0 deletions appserver/webservices/jsr109-impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,9 @@
<artifactId>logging-annotation-processor</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
</dependency>
</dependencies>
</project>
7 changes: 6 additions & 1 deletion nucleus/admin/cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,12 @@
<artifactId>cluster-common</artifactId>
<version>${project.parent.version}</version>
</dependency>
</dependencies>

<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
</dependency>
</dependencies>

<build>
<resources>
Expand Down
4 changes: 4 additions & 0 deletions nucleus/admin/config-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@
<artifactId>jakarta.el</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
</dependency>
</dependencies>

<build>
Expand Down
5 changes: 5 additions & 0 deletions nucleus/admin/launcher/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@
<artifactId>logging-annotation-processor</artifactId>
<optional>true</optional>
</dependency>

<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
</dependency>
</dependencies>

<build>
Expand Down
4 changes: 4 additions & 0 deletions nucleus/admin/server-mgmt/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@
<groupId>org.glassfish.annotations</groupId>
<artifactId>logging-annotation-processor</artifactId>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
</dependency>
</dependencies>

<build>
Expand Down
18 changes: 11 additions & 7 deletions nucleus/admin/util/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,6 @@
<artifactId>security-services</artifactId>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>org.glassfish.main.tests</groupId>
<artifactId>utils</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.glassfish.annotations</groupId>
<artifactId>logging-annotation-processor</artifactId>
Expand All @@ -128,6 +121,17 @@
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>

<dependency>
<groupId>org.glassfish.main.tests</groupId>
<artifactId>utils</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
</dependency>
</dependencies>

<build>
Expand Down
5 changes: 5 additions & 0 deletions nucleus/cluster/cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@
<groupId>org.glassfish.shoal</groupId>
<artifactId>shoal-gms-impl</artifactId>
</dependency>

<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
</dependency>
</dependencies>

<build>
Expand Down
5 changes: 5 additions & 0 deletions nucleus/cluster/common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,17 @@
<artifactId>glassfish-api</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>org.glassfish.main.tests</groupId>
<artifactId>utils</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
</dependency>
</dependencies>

<build>
Expand Down
5 changes: 5 additions & 0 deletions nucleus/common/amx-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,10 @@
<artifactId>logging-annotation-processor</artifactId>
<optional>true</optional>
</dependency>

<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
</dependency>
</dependencies>
</project>
Loading

0 comments on commit 8b5a170

Please sign in to comment.