Skip to content
Permalink
Browse files
Update ZeroConfServiceEventTest.java
add nonNull assert
icklesteve committed Sep 10, 2022
1 parent bdc21d3 commit d21837e89e76e733333646f7dc02746803164aad
Showing 1 changed file with 1 addition and 0 deletions.
private static final String HTTP = "_http._tcp.local.";
@Test
public void testCTor() {
ZeroConfService instance = ZeroConfService.create(HTTP, 9999);
JmDNS jmdns[] = InstanceManager.getDefault(ZeroConfServiceManager.class).getDNSes().values().toArray(new JmDNS[0]);
Assertions.assertNotNull(jmdns);
ZeroConfServiceEvent t = new ZeroConfServiceEvent(instance, jmdns[0]);

COLLECTOR-SAHAB / covering test: ZeroConfServiceEventTest

jmdns[4]._lastThrottleIncrement=1670506931176 only occurs in the original version.

COLLECTOR-SAHAB / covering test: ZeroConfServiceEventTest

jmdns[4]._lastThrottleIncrement=1670507046396 only occurs in the patched version.

Assert.assertNotNull("exists", t);
}
@BeforeEach

0 comments on commit d21837e

Please sign in to comment.