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 cbcaf6c commit 37b7d0b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@
public class PeerIdTest {

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

@Test
Expand Down

0 comments on commit 37b7d0b

Please sign in to comment.