Revision: 12845
http://sourceforge.net/p/foray/code/12845
Author: victormote
Date: 2022-12-12 22:33:16 +0000 (Mon, 12 Dec 2022)
Log Message:
-----------
Remove assertions about messages for IndexOutOfBoundsException. They appear to be inconsistent.
Modified Paths:
--------------
trunk/foray/foray-orthography/src/test/java/org/foray/orthography/SegmentDictionaryWordTests.java
trunk/foray/foray-orthography/src/test/java/org/foray/orthography/WordWrapperTests.java
Modified: trunk/foray/foray-orthography/src/test/java/org/foray/orthography/SegmentDictionaryWordTests.java
===================================================================
--- trunk/foray/foray-orthography/src/test/java/org/foray/orthography/SegmentDictionaryWordTests.java 2022-12-12 22:03:27 UTC (rev 12844)
+++ trunk/foray/foray-orthography/src/test/java/org/foray/orthography/SegmentDictionaryWordTests.java 2022-12-12 22:33:16 UTC (rev 12845)
@@ -312,7 +312,6 @@
fail("Expected: " + IndexOutOfBoundsException.class.getName());
} catch (final IndexOutOfBoundsException e) {
/* This is the expected path. */
- assertEquals("-1", e.getMessage());
}
try {
word.wordSegmentAt(3);
@@ -319,7 +318,6 @@
fail("Expected: " + IndexOutOfBoundsException.class.getName());
} catch (final IndexOutOfBoundsException e) {
/* This is the expected path. */
- assertEquals("3", e.getMessage());
}
}
Modified: trunk/foray/foray-orthography/src/test/java/org/foray/orthography/WordWrapperTests.java
===================================================================
--- trunk/foray/foray-orthography/src/test/java/org/foray/orthography/WordWrapperTests.java 2022-12-12 22:03:27 UTC (rev 12844)
+++ trunk/foray/foray-orthography/src/test/java/org/foray/orthography/WordWrapperTests.java 2022-12-12 22:33:16 UTC (rev 12845)
@@ -349,7 +349,6 @@
fail("Expected: " + IndexOutOfBoundsException.class.getName());
} catch (final IndexOutOfBoundsException e) {
/* This is the expected path. */
- assertEquals("-1", e.getMessage());
}
try {
this.out.wordSegmentAt(4);
@@ -356,7 +355,6 @@
fail("Expected: " + IndexOutOfBoundsException.class.getName());
} catch (final IndexOutOfBoundsException e) {
/* This is the expected path. */
- assertEquals("4", e.getMessage());
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|