Removing the 'will fail on JDK 1.6' as we now have a pre 1.6 implementation

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1062493 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Henri Yandell 2011-01-23 18:41:46 +00:00
parent ead7d965e7
commit 2be456f665
1 changed files with 12 additions and 21 deletions

View File

@ -242,7 +242,6 @@ public class StringUtilsTrimEmptyTest extends TestCase {
}
public void testStripAccents() {
if(SystemUtils.isJavaVersionAtLeast(1.6f)) {
String cue = "\u00C7\u00FA\u00EA";
assertEquals( "Failed to strip accents from " + cue, "Cue", StringUtils.stripAccents(cue));
@ -257,14 +256,6 @@ public class StringUtilsTrimEmptyTest extends TestCase {
assertEquals( "Failed empty String", "", StringUtils.stripAccents("") );
assertEquals( "Failed to handle non-accented text", "control", StringUtils.stripAccents("control") );
assertEquals( "Failed to handle easy example", "eclair", StringUtils.stripAccents("\u00E9clair") );
} else {
try {
StringUtils.stripAccents("string");
fail("Before JDK 1.6, stripAccents is not expected to work");
} catch(UnsupportedOperationException uoe) {
assertEquals("The stripAccents(String) method is not supported until Java 1.6", uoe.getMessage());
}
}
}
//-----------------------------------------------------------------------