Skip to content

Commit 69cbcb2

Browse files
committed
Add small unit test
1 parent 7438b65 commit 69cbcb2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/test/java/org/kitteh/irc/client/library/util/SanityTest.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,16 @@ public void safeMessageFailNul() {
106106
Sanity.safeMessageCheck("Me\0ow");
107107
}
108108

109+
@Test
110+
public void noSpacesPass() {
111+
Sanity.noSpaces("Cat", "");
112+
}
113+
114+
@Test(expected = IllegalArgumentException.class)
115+
public void noSpacesFail() {
116+
Sanity.noSpaces("Cat ", "");
117+
}
118+
109119
/**
110120
* Tests the private constructor.
111121
*

0 commit comments

Comments
 (0)