Skip to content

Commit

Permalink
Test status quo for void method references passed to assertThrows()
Browse files Browse the repository at this point in the history
Issue: #1576
  • Loading branch information
sbrannen committed Sep 9, 2018
1 parent 8fe944b commit 342ac34
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ void assertThrowsWithMethodReferenceForVoidReturnType() {
// Explicitly as an Executable
exception = assertThrows(IllegalMonitorStateException.class, (Executable) object::notify);
assertNotNull(exception);

exception = assertThrows(IllegalMonitorStateException.class, (Executable) object::wait);
assertNotNull(exception);
}

// --- executable ----------------------------------------------------------
Expand Down

0 comments on commit 342ac34

Please sign in to comment.