Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
caicancai committed Jun 25, 2024
1 parent 02721d7 commit 5c75d7d
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@

public class PeerIdTest {

@Test
public void testToStringPeerIdFalse() {
final PeerId serverId = new PeerId();
assertFalse(serverId.parse(null));
assertFalse(serverId.parse(""));
assertFalse(serverId.parse(" "));
}

@Test
public void testToStringParse() {
final PeerId peer = new PeerId("192.168.1.1", 8081, 0);
Expand Down

0 comments on commit 5c75d7d

Please sign in to comment.