Skip to content

Commit 29c6266

Browse files
authored
remove uses of deprecated JUnit methods (#44)
1 parent f6a5351 commit 29c6266

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

src/test/java/com/spotify/github/GitHubInstantTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
import static org.hamcrest.core.Is.is;
2424
import static org.hamcrest.core.IsEqual.equalTo;
25-
import static org.junit.Assert.assertThat;
25+
import static org.hamcrest.MatcherAssert.assertThat;
2626

2727
import java.time.Instant;
2828
import org.junit.Test;

src/test/java/com/spotify/github/http/LinkTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
import static java.util.stream.Collectors.toList;
2424
import static org.hamcrest.core.Is.is;
25-
import static org.junit.Assert.assertThat;
25+
import static org.hamcrest.MatcherAssert.assertThat;
2626

2727
import java.util.Arrays;
2828
import java.util.List;

src/test/java/com/spotify/github/jackson/GitHubInstantModuleTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
package com.spotify.github.jackson;
2222

2323
import static org.hamcrest.core.Is.is;
24-
import static org.junit.Assert.assertThat;
24+
import static org.hamcrest.MatcherAssert.assertThat;
2525

2626
import com.spotify.github.GitHubInstant;
2727
import java.io.IOException;

src/test/java/com/spotify/github/v3/clients/GitDataClientTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ public void listMatchingReferences() throws Exception {
102102
}
103103

104104
@Test
105+
@SuppressWarnings("deprecation")
105106
public void listReferences() throws Exception {
106107
final CompletableFuture<List<Reference>> fixture =
107108
completedFuture(json.fromJson(getFixture("tags_list.json"), LIST_REFERENCES));

src/test/java/com/spotify/github/v3/repos/StatusTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222

2323
import static com.google.common.io.Resources.getResource;
2424
import static java.nio.charset.Charset.defaultCharset;
25+
import static org.hamcrest.MatcherAssert.assertThat;
2526
import static org.hamcrest.core.Is.is;
26-
import static org.junit.Assert.assertThat;
2727

2828
import com.google.common.io.Resources;
2929
import com.spotify.github.jackson.Json;

src/test/java/com/spotify/github/v3/repos/requests/RepositoryCreateStatusTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
import static org.hamcrest.CoreMatchers.equalTo;
2424
import static org.hamcrest.CoreMatchers.is;
25-
import static org.junit.Assert.assertThat;
25+
import static org.hamcrest.MatcherAssert.assertThat;
2626

2727
import com.fasterxml.jackson.core.JsonProcessingException;
2828
import com.spotify.github.jackson.Json;

0 commit comments

Comments
 (0)