Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
bitwiseman authored Mar 12, 2024
1 parent 0ae2f36 commit d1867d6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/test/java/org/kohsuke/github/GHEventPayloadTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -1000,10 +1000,10 @@ public void InstallationCreatedEvent() throws Exception {
assertThat(event.getInstallation().getId(), is(43898337L));
assertThat(event.getInstallation().getAccount().getLogin(), is("CronFire"));

assertFalse(event.getRepositories().isEmpty());
assertEquals(event.getRepositories().get(0).getId(), 1296269);
assertFalse(event.getRawRepositories().isEmpty());
assertEquals(event.getRawRepositories().get(0).getId(), 1296269);
assertThat(event.getRepositories().isEmpty(), is(false));
assertThat(event.getRepositories().get(0).getId(), is(1296269));
assertThat(event.getRawRepositories().isEmpty(), is(false));
assertThat(event.getRawRepositories().get(0).getId(), is(1296269));

assertThat(event.getSender().getLogin(), is("Haarolean"));
}
Expand All @@ -1026,8 +1026,8 @@ public void InstallationDeletedEvent() throws Exception {
assertThat(event.getInstallation().getAccount().getLogin(), is("octocat"));

assertThrows(IllegalStateException.class, () -> event.getRepositories().isEmpty());
assertFalse(event.getRawRepositories().isEmpty());
assertEquals(event.getRawRepositories().get(0).getId(), 1296269);
assertThat(event.getRepositories().isEmpty(), is(false));
assertThat(event.getRepositories().get(0).getId(), is(1296269));

assertThat(event.getSender().getLogin(), is("octocat"));
}
Expand Down

0 comments on commit d1867d6

Please sign in to comment.