diff --git a/src/test/java/phy/CPClientCookieRequestTest.java b/src/test/java/phy/CPClientCookieRequestTest.java index 8b215698b2a0020d682dbdbfdf9a95ebe59d071a..e89af21fd9e0d0b4b6fe7c28839a104d46e2a889 100644 --- a/src/test/java/phy/CPClientCookieRequestTest.java +++ b/src/test/java/phy/CPClientCookieRequestTest.java @@ -58,7 +58,7 @@ public class CPClientCookieRequestTest { when(phyProtocolMock.receive(anyInt())).thenReturn(testMsg); // Run the test - assertDoesNotThrow(()->cProtocol.requestCookie()); + assertDoesNotThrow(()->cProtocol.requestCookie(1)); // verify a specified behavior verify(phyProtocolMock, times(1)).receive(2000); @@ -77,7 +77,7 @@ public class CPClientCookieRequestTest { // Run the test assertThrows(CookieRequestException.class, - ()->cProtocol.requestCookie()); + ()->cProtocol.requestCookie(1)); verify(phyProtocolMock, times(1)).receive(2000); } @@ -96,7 +96,7 @@ public class CPClientCookieRequestTest { when(phyProtocolMock.receive(anyInt())).thenReturn(corruptedPhyMsg).thenReturn(testMsg); // Run the test - assertDoesNotThrow(()->cProtocol.requestCookie()); + assertDoesNotThrow(()->cProtocol.requestCookie(1)); verify(phyProtocolMock, times(2)).receive(2000); } @@ -113,7 +113,7 @@ public class CPClientCookieRequestTest { when(phyProtocolMock.receive(anyInt())).thenReturn(corruptedMsg).thenReturn(testMsg); // Run the test - assertDoesNotThrow(()->cProtocol.requestCookie()); + assertDoesNotThrow(()->cProtocol.requestCookie(1)); verify(phyProtocolMock, times(2)).receive(2000); } @@ -130,7 +130,7 @@ public class CPClientCookieRequestTest { when(phyProtocolMock.receive(anyInt())).thenReturn(corruptedMsg).thenReturn(testMsg); // Run the test - assertDoesNotThrow(()->cProtocol.requestCookie()); + assertDoesNotThrow(()->cProtocol.requestCookie(1)); verify(phyProtocolMock, times(2)).receive(anyInt()); } @@ -143,7 +143,7 @@ public class CPClientCookieRequestTest { // Run the test assertThrows(CookieRequestException.class, - ()->cProtocol.requestCookie()); + ()->cProtocol.requestCookie(1)); verify(phyProtocolMock, times(3)).receive(2000); }