We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5159f26 commit 4ffb091Copy full SHA for 4ffb091
agent/src/test/java/com/cloud/agent/AgentTest.java
@@ -76,8 +76,7 @@ public void testGetLinkLogNullLinkReturnsEmptyString() {
76
@Test
77
public void testGetLinkLogLinkWithTraceEnabledReturnsLinkLogWithHashCode() {
78
Link link = mock(Link.class);
79
- InetSocketAddress socketAddress = mock(InetSocketAddress.class);
80
- when(socketAddress.toString()).thenReturn("192.168.1.100");
+ InetSocketAddress socketAddress = new InetSocketAddress("192.168.1.100", 1111);
81
when(link.getSocketAddress()).thenReturn(socketAddress);
82
when(logger.isTraceEnabled()).thenReturn(true);
83
0 commit comments