summaryrefslogtreecommitdiffstats
path: root/test/com
diff options
context:
space:
mode:
Diffstat (limited to 'test/com')
-rw-r--r--test/com/isode/stroke/idn/IDNConverterTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/com/isode/stroke/idn/IDNConverterTest.java b/test/com/isode/stroke/idn/IDNConverterTest.java
index a17affc..eb82a61 100644
--- a/test/com/isode/stroke/idn/IDNConverterTest.java
+++ b/test/com/isode/stroke/idn/IDNConverterTest.java
@@ -38,7 +38,7 @@ public class IDNConverterTest {
try {
String result = testling.getStringPrepared("tronçon", IDNConverter.StringPrepProfile.NamePrep);
assertEquals("tronçon", result);
- } catch (StringPrepParseException e) {
+ } catch (IllegalArgumentException e) {
assertTrue("getStringPrep threw " + e, (e == null));
}
}
@@ -49,7 +49,7 @@ public class IDNConverterTest {
assertEquals("", testling.getStringPrepared("", IDNConverter.StringPrepProfile.NamePrep));
assertEquals("", testling.getStringPrepared("", IDNConverter.StringPrepProfile.XMPPNodePrep));
assertEquals("", testling.getStringPrepared("", IDNConverter.StringPrepProfile.XMPPResourcePrep));
- } catch (StringPrepParseException e) {
+ } catch (IllegalArgumentException e) {
assertTrue("getStringPrep threw " + e, (e == null));
}
}