Skip to content

Commit

Permalink
[hotfix][yarn] Code clean-ups in RegisterApplicationMasterResponseRef…
Browse files Browse the repository at this point in the history
…lectorTest.
  • Loading branch information
xintongsong authored and tillrohrmann committed Apr 25, 2020
1 parent 47025f7 commit 8380081
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ public void testCallsMethodIfPresent() {
new RegisterApplicationMasterResponseReflector(LOG, HasMethod.class);

final List<Container> containersFromPreviousAttemptsUnsafe =
registerApplicationMasterResponseReflector.getContainersFromPreviousAttemptsUnsafe(new
HasMethod());
registerApplicationMasterResponseReflector.getContainersFromPreviousAttemptsUnsafe(new HasMethod());

assertThat(containersFromPreviousAttemptsUnsafe, hasSize(1));
}
Expand All @@ -74,8 +73,7 @@ public void testDoesntCallMethodIfAbsent() {
new RegisterApplicationMasterResponseReflector(LOG, HasMethod.class);

final List<Container> containersFromPreviousAttemptsUnsafe =
registerApplicationMasterResponseReflector.getContainersFromPreviousAttemptsUnsafe(new
Object());
registerApplicationMasterResponseReflector.getContainersFromPreviousAttemptsUnsafe(new Object());

assertThat(containersFromPreviousAttemptsUnsafe, empty());
}
Expand Down

0 comments on commit 8380081

Please sign in to comment.