Skip to content

Commit 2f790ec

Browse files
committed
Removing hamcrest test dependency
1 parent 3d41ec8 commit 2f790ec

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
@@ -273,12 +273,6 @@
273273
<version>1.18.8</version>
274274
<scope>test</scope>
275275
</dependency>
276-
<dependency>
277-
<groupId>org.hamcrest</groupId>
278-
<artifactId>hamcrest</artifactId>
279-
<version>3.0</version>
280-
<scope>test</scope>
281-
</dependency>
282276

283277
<!-- Override transitive plexus-utils to ensure a CVE-free version.
284278
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)