コード例 #1
0
 @Test
 public void delegateCheckMulticastWithTtl() {
   InetAddress inetAddress = mock(InetAddress.class);
   byte ttl = 24;
   managerWithOriginal.checkMulticast(inetAddress, ttl);
   verify(originalSecurityManager).checkMulticast(inetAddress, ttl);
 }
コード例 #2
0
 @Test
 public void dontFailWithoutParentForCheckMulticastWithTtl() {
   InetAddress inetAddress = mock(InetAddress.class);
   byte ttl = 24;
   managerWithoutOriginal.checkMulticast(inetAddress, ttl);
 }