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 cbcaf6c
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@

public class PeerIdTest {

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

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

0 comments on commit cbcaf6c

Please sign in to comment.