Skip to content

Commit

Permalink
Change assertion style
Browse files Browse the repository at this point in the history
  • Loading branch information
augustd committed Nov 15, 2024
1 parent cffee4e commit ed6b208
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/test/java/org/kohsuke/github/GHRepositoryTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

import static org.hamcrest.Matchers.*;
import static org.hamcrest.core.IsInstanceOf.instanceOf;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThrows;
import static org.kohsuke.github.GHVerification.Reason.GPGVERIFY_ERROR;
import static org.kohsuke.github.GHVerification.Reason.UNKNOWN_SIGNATURE_TYPE;
Expand Down Expand Up @@ -522,7 +521,7 @@ public void listContributorsAnon() throws IOException {

for (GHRepository.Contributor c : r.listContributors(true)) {
if (c.getType().equals("Anonymous")) {
assertEquals(c.getContributions(), 3);
assertThat(c.getContributions(), is(3));
kohsuke = true;
}
if (++i > 1) {
Expand Down

0 comments on commit ed6b208

Please sign in to comment.