summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'test/com/isode')
-rw-r--r--test/com/isode/stroke/jid/JIDTest.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/test/com/isode/stroke/jid/JIDTest.java b/test/com/isode/stroke/jid/JIDTest.java
index 96de429..69bee05 100644
--- a/test/com/isode/stroke/jid/JIDTest.java
+++ b/test/com/isode/stroke/jid/JIDTest.java
@@ -12,12 +12,10 @@
package com.isode.stroke.jid;
import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
+
import org.junit.Test;
-import com.isode.stroke.jid.JID;
public class JIDTest {
@@ -155,6 +153,12 @@ public class JIDTest {
assertFalse(testling.isValid());
}
+
+ @Test
+ public void testConstructorWithStrings_EmptyResource() {
+ JID testling = new JID("foo","bar","");
+ assertFalse(testling.isValid());
+ }
@Test