Skip to content

Commit cea3efb

Browse files
committed
Removing hamcrest test dependency
1 parent 0a16138 commit cea3efb

2 files changed

Lines changed: 2 additions & 9 deletions

File tree

pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -291,12 +291,6 @@
291291
<version>1.18.8</version>
292292
<scope>test</scope>
293293
</dependency>
294-
<dependency>
295-
<groupId>org.hamcrest</groupId>
296-
<artifactId>hamcrest</artifactId>
297-
<version>3.0</version>
298-
<scope>test</scope>
299-
</dependency>
300294

301295
<!-- Override transitive plexus-utils to ensure a CVE-free version.
302296
Pulled in via test-scoped jacoco-maven-plugin and surefire deps.

src/test/java/com/recurly/v3/ClientTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
package com.recurly.v3;
22

3-
import static org.hamcrest.MatcherAssert.assertThat;
4-
import static org.hamcrest.Matchers.matchesPattern;
53
import static org.junit.jupiter.api.Assertions.assertThrows;
4+
import static org.junit.jupiter.api.Assertions.assertTrue;
65

76
import org.junit.jupiter.api.Test;
87

@@ -25,6 +24,6 @@ public void testCantInitializeWithoutApiKey() {
2524

2625
@Test
2726
public void testRespondsWithValidApiVersion() {
28-
assertThat(Client.API_VERSION, matchesPattern("v\\d{4}-\\d{2}-\\d{2}"));
27+
assertTrue(Client.API_VERSION.matches("v\\d{4}-\\d{2}-\\d{2}"));
2928
}
3029
}

0 commit comments

Comments
 (0)