fix illegal monitor test

This commit is contained in:
Loredana Crusoveanu 2020-12-03 12:51:02 +02:00
parent 5ee88c852e
commit f4390801ca
1 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,8 @@ public class IllegalMonitorStateExceptionUnitTest {
senderThread.join(1000);
receiverThread.join(1000);
Thread.sleep(2000);
assertEquals("test", receiver.getMessage());
assertFalse(sender.hasIllegalMonitorStateExceptionOccurred());