You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2009/10/18 14:16:51 UTC
svn commit: r826420 - in
/commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/translate:
NumericEntityEscaperTest.java UnescapeUtilsTest.java
UnicodeEscaperTest.java UnicodeUnescaperTest.java
Author: sebb
Date: Sun Oct 18 12:16:50 2009
New Revision: 826420
URL: http://svn.apache.org/viewvc?rev=826420&view=rev
Log:
Remove unused imports and throws
Modified:
commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/translate/NumericEntityEscaperTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/translate/UnescapeUtilsTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/translate/UnicodeEscaperTest.java
commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/translate/UnicodeUnescaperTest.java
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/translate/NumericEntityEscaperTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/translate/NumericEntityEscaperTest.java?rev=826420&r1=826419&r2=826420&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/translate/NumericEntityEscaperTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/translate/NumericEntityEscaperTest.java Sun Oct 18 12:16:50 2009
@@ -19,15 +19,12 @@
import junit.framework.TestCase;
-import java.io.StringWriter;
-import java.io.IOException;
-
/**
* Unit tests for {@link org.apache.commons.lang.text.translate.NumericEntityEscaper}.
*/
public class NumericEntityEscaperTest extends TestCase {
- public void testBelow() throws IOException {
+ public void testBelow() {
NumericEntityEscaper nee = NumericEntityEscaper.below('F');
String input = "ADFGZ";
@@ -35,7 +32,7 @@
assertEquals("Failed to escape numeric entities via the below method", "ADFGZ", result);
}
- public void testBetween() throws IOException {
+ public void testBetween() {
NumericEntityEscaper nee = NumericEntityEscaper.between('F', 'L');
String input = "ADFGZ";
@@ -43,7 +40,7 @@
assertEquals("Failed to escape numeric entities via the between method", "ADFGZ", result);
}
- public void testAbove() throws IOException {
+ public void testAbove() {
NumericEntityEscaper nee = NumericEntityEscaper.above('F');
String input = "ADFGZ";
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/translate/UnescapeUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/translate/UnescapeUtilsTest.java?rev=826420&r1=826419&r2=826420&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/translate/UnescapeUtilsTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/translate/UnescapeUtilsTest.java Sun Oct 18 12:16:50 2009
@@ -19,9 +19,6 @@
import junit.framework.TestCase;
-import java.io.StringWriter;
-import java.io.IOException;
-
/**
* Unit tests for {@link org.apache.commons.lang.text.translate.UnescapeUtils}.
*/
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/translate/UnicodeEscaperTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/translate/UnicodeEscaperTest.java?rev=826420&r1=826419&r2=826420&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/translate/UnicodeEscaperTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/translate/UnicodeEscaperTest.java Sun Oct 18 12:16:50 2009
@@ -19,15 +19,12 @@
import junit.framework.TestCase;
-import java.io.StringWriter;
-import java.io.IOException;
-
/**
* Unit tests for {@link org.apache.commons.lang.text.translate.UnicodeEscaper}.
*/
public class UnicodeEscaperTest extends TestCase {
- public void testBelow() throws IOException {
+ public void testBelow() {
UnicodeEscaper nee = UnicodeEscaper.below('F');
String input = "ADFGZ";
@@ -35,7 +32,7 @@
assertEquals("Failed to escape unicode characters via the below method", "\\u0041\\u0044FGZ", result);
}
- public void testBetween() throws IOException {
+ public void testBetween() {
UnicodeEscaper nee = UnicodeEscaper.between('F', 'L');
String input = "ADFGZ";
@@ -43,7 +40,7 @@
assertEquals("Failed to escape unicode characters via the between method", "AD\\u0046\\u0047Z", result);
}
- public void testAbove() throws IOException {
+ public void testAbove() {
UnicodeEscaper nee = UnicodeEscaper.above('F');
String input = "ADFGZ";
Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/translate/UnicodeUnescaperTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/translate/UnicodeUnescaperTest.java?rev=826420&r1=826419&r2=826420&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/translate/UnicodeUnescaperTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/translate/UnicodeUnescaperTest.java Sun Oct 18 12:16:50 2009
@@ -19,21 +19,18 @@
import junit.framework.TestCase;
-import java.io.StringWriter;
-import java.io.IOException;
-
/**
* Unit tests for {@link org.apache.commons.lang.text.translate.UnicodeEscaper}.
*/
public class UnicodeUnescaperTest extends TestCase {
// Requested in LANG-507
- public void testUPlus() throws IOException {
+ public void testUPlus() {
UnicodeUnescaper uu = new UnicodeUnescaper();
String input = "\\u+0047";
try {
- String result = uu.translate(input);
+ uu.translate(input);
fail("Default behaviour should not parse u+");
} catch(IllegalArgumentException iae) {
// expected
@@ -43,7 +40,7 @@
assertEquals("Failed to unescape unicode characters with 'u+' notation", "G", uu.translate(input));
}
- public void testUuuuu() throws IOException {
+ public void testUuuuu() {
UnicodeUnescaper uu = new UnicodeUnescaper();
String input = "\\uuuuuuuu0047";
@@ -51,7 +48,7 @@
assertEquals("Failed to unescape unicode characters with many 'u' characters", "G", result);
}
- public void testLessThanFour() throws IOException {
+ public void testLessThanFour() {
UnicodeUnescaper uu = new UnicodeUnescaper();
String input = "\\0047\\u006";