Author: ggregory
Date: Tue Jul 19 20:53:23 2011
New Revision: 1148520
URL: http://svn.apache.org/viewvc?rev=1148520&view=rev
Log:
Javadoc, comments, and message strings: Change "unicode" to "Unicode".
Modified:
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/CharUtils.java
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/RandomStringUtils.java
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringEscapeUtils.java
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/math/NumberUtils.java
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/StrBuilder.java
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/WordUtils.java
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/translate/UnicodeEscaper.java
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/translate/UnicodeUnescaper.java
commons/proper/lang/trunk/src/site/changes/changes.xml
commons/proper/lang/trunk/src/site/xdoc/article3_0.xml
commons/proper/lang/trunk/src/site/xdoc/upgradeto2_2.xml
commons/proper/lang/trunk/src/site/xdoc/upgradeto3_0.xml
commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringEscapeUtilsTest.java
commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/text/translate/UnicodeEscaperTest.java
commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/text/translate/UnicodeUnescaperTest.java
Modified:
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/CharUtils.java
URL:
http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/CharUtils.java?rev=1148520&r1=1148519&r2=1148520&view=diff
==============================================================================
---
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/CharUtils.java
(original)
+++
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/CharUtils.java
Tue Jul 19 20:53:23 2011
@@ -358,7 +358,7 @@ public class CharUtils {
//--------------------------------------------------------------------------
/**
- * <p>Converts the string to the unicode format '\u0020'.</p>
+ * <p>Converts the string to the Unicode format '\u0020'.</p>
*
* <p>This format is the Java source code format.</p>
*
@@ -368,7 +368,7 @@ public class CharUtils {
* </pre>
*
* @param ch the character to convert
- * @return the escaped unicode string
+ * @return the escaped Unicode string
*/
public static String unicodeEscaped(char ch) {
if (ch < 0x10) {
@@ -382,7 +382,7 @@ public class CharUtils {
}
/**
- * <p>Converts the string to the unicode format '\u0020'.</p>
+ * <p>Converts the string to the Unicode format '\u0020'.</p>
*
* <p>This format is the Java source code format.</p>
*
@@ -395,7 +395,7 @@ public class CharUtils {
* </pre>
*
* @param ch the character to convert, may be null
- * @return the escaped unicode string, null if null input
+ * @return the escaped Unicode string, null if null input
*/
public static String unicodeEscaped(Character ch) {
if (ch == null) {
Modified:
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/RandomStringUtils.java
URL:
http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/RandomStringUtils.java?rev=1148520&r1=1148519&r2=1148520&view=diff
==============================================================================
---
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/RandomStringUtils.java
(original)
+++
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/RandomStringUtils.java
Tue Jul 19 20:53:23 2011
@@ -21,7 +21,7 @@ import java.util.Random;
/**
* <p>Operations for random {@code String}s.</p>
* <p>Currently <em>private high surrogate</em> characters are ignored.
- * These are unicode characters that fall between the values 56192 (db80)
+ * These are Unicode characters that fall between the values 56192 (db80)
* and 56319 (dbff) as we don't know how to handle them.
* High and low surrogates are correctly dealt with - that is if a
* high surrogate is randomly chosen, 55296 (d800) to 56191 (db7f)
Modified:
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringEscapeUtils.java
URL:
http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringEscapeUtils.java?rev=1148520&r1=1148519&r2=1148520&view=diff
==============================================================================
---
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringEscapeUtils.java
(original)
+++
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringEscapeUtils.java
Tue Jul 19 20:53:23 2011
@@ -493,7 +493,7 @@ public class StringEscapeUtils {
* <p>Supports only the five basic XML entities (gt, lt, quot, amp, apos).
* Does not support DTDs or external entities.</p>
*
- * <p>Note that unicode characters greater than 0x7f are as of 3.0, no
longer
+ * <p>Note that Unicode characters greater than 0x7f are as of 3.0, no
longer
* escaped. If you still wish this functionality, you can achieve it
* via the following:
* {@code StringEscapeUtils.ESCAPE_XML.with(
NumericEntityEscaper.between(0x7f, Integer.MAX_VALUE) );}</p>
@@ -516,8 +516,8 @@ public class StringEscapeUtils {
* <p>Supports only the five basic XML entities (gt, lt, quot, amp, apos).
* Does not support DTDs or external entities.</p>
*
- * <p>Note that numerical \\u unicode codes are unescaped to their
respective
- * unicode characters. This may change in future releases. </p>
+ * <p>Note that numerical \\u Unicode codes are unescaped to their
respective
+ * Unicode characters. This may change in future releases. </p>
*
* @param input the {@code String} to unescape, may be null
* @return a new unescaped {@code String}, {@code null} if null string
input
Modified:
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/math/NumberUtils.java
URL:
http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/math/NumberUtils.java?rev=1148520&r1=1148519&r2=1148520&view=diff
==============================================================================
---
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/math/NumberUtils.java
(original)
+++
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/math/NumberUtils.java
Tue Jul 19 20:53:23 2011
@@ -1281,7 +1281,7 @@ public class NumberUtils {
* <code>false</code>.</p>
*
* @param str the <code>String</code> to check
- * @return <code>true</code> if str contains only unicode numeric
+ * @return <code>true</code> if str contains only Unicode numeric
*/
public static boolean isDigits(String str) {
if (StringUtils.isEmpty(str)) {
Modified:
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/StrBuilder.java
URL:
http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/StrBuilder.java?rev=1148520&r1=1148519&r2=1148520&view=diff
==============================================================================
---
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/StrBuilder.java
(original)
+++
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/StrBuilder.java
Tue Jul 19 20:53:23 2011
@@ -186,7 +186,7 @@ public class StrBuilder implements CharS
/**
* Updates the length of the builder by either dropping the last characters
- * or adding filler of unicode zero.
+ * or adding filler of Unicode zero.
*
* @param length the length to set to, must be zero or positive
* @return this, to enable chaining
Modified:
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/WordUtils.java
URL:
http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/WordUtils.java?rev=1148520&r1=1148519&r2=1148520&view=diff
==============================================================================
---
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/WordUtils.java
(original)
+++
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/WordUtils.java
Tue Jul 19 20:53:23 2011
@@ -150,7 +150,7 @@ public class WordUtils {
*
* <p>Whitespace is defined by {@link Character#isWhitespace(char)}.
* A <code>null</code> input String returns <code>null</code>.
- * Capitalization uses the unicode title case, normally equivalent to
+ * Capitalization uses the Unicode title case, normally equivalent to
* upper case.</p>
*
* <pre>
@@ -179,7 +179,7 @@ public class WordUtils {
* delimiter will be capitalized. </p>
*
* <p>A <code>null</code> input String returns <code>null</code>.
- * Capitalization uses the unicode title case, normally equivalent to
+ * Capitalization uses the Unicode title case, normally equivalent to
* upper case.</p>
*
* <pre>
@@ -224,7 +224,7 @@ public class WordUtils {
*
* <p>Whitespace is defined by {@link Character#isWhitespace(char)}.
* A <code>null</code> input String returns <code>null</code>.
- * Capitalization uses the unicode title case, normally equivalent to
+ * Capitalization uses the Unicode title case, normally equivalent to
* upper case.</p>
*
* <pre>
@@ -250,7 +250,7 @@ public class WordUtils {
* delimiter will be capitalized. </p>
*
* <p>A <code>null</code> input String returns <code>null</code>.
- * Capitalization uses the unicode title case, normally equivalent to
+ * Capitalization uses the Unicode title case, normally equivalent to
* upper case.</p>
*
* <pre>
Modified:
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/translate/UnicodeEscaper.java
URL:
http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/translate/UnicodeEscaper.java?rev=1148520&r1=1148519&r2=1148520&view=diff
==============================================================================
---
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/translate/UnicodeEscaper.java
(original)
+++
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/translate/UnicodeEscaper.java
Tue Jul 19 20:53:23 2011
@@ -20,7 +20,7 @@ import java.io.IOException;
import java.io.Writer;
/**
- * Translates codepoints to their unicode escaped value.
+ * Translates codepoints to their Unicode escaped value.
*
* @since 3.0
* @version $Id$
@@ -111,9 +111,9 @@ public class UnicodeEscaper extends Code
}
}
- // TODO: Handle potential + sign per various unicode escape
implementations
+ // TODO: Handle potential + sign per various Unicode escape
implementations
if (codepoint > 0xffff) {
- // TODO: Figure out what to do. Output as two unicodes?
+ // TODO: Figure out what to do. Output as two Unicodes?
// Does this make this a Java-specific output class?
out.write("\\u" + hex(codepoint));
} else if (codepoint > 0xfff) {
Modified:
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/translate/UnicodeUnescaper.java
URL:
http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/translate/UnicodeUnescaper.java?rev=1148520&r1=1148519&r2=1148520&view=diff
==============================================================================
---
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/translate/UnicodeUnescaper.java
(original)
+++
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/text/translate/UnicodeUnescaper.java
Tue Jul 19 20:53:23 2011
@@ -20,8 +20,8 @@ import java.io.IOException;
import java.io.Writer;
/**
- * Translates escaped unicode values of the form \\u+\d\d\d\d back to
- * unicode. It supports multiple 'u' characters and will work with or
+ * Translates escaped Unicode values of the form \\u+\d\d\d\d back to
+ * Unicode. It supports multiple 'u' characters and will work with or
* without the +.
*
* @since 3.0
Modified: commons/proper/lang/trunk/src/site/changes/changes.xml
URL:
http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/site/changes/changes.xml?rev=1148520&r1=1148519&r2=1148520&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/site/changes/changes.xml (original)
+++ commons/proper/lang/trunk/src/site/changes/changes.xml Tue Jul 19 20:53:23
2011
@@ -30,7 +30,7 @@
<action type="update" issue="LANG-713">Increase test coverage of
FieldUtils read methods and tweak javadoc</action>
<action type="fix" issue="LANG-711">Add includeantruntime=false to javac
targets to quell warnings in ant 1.8.1 and better (and modest performance
gain).</action>
<action type="fix" issue="LANG-710">StringIndexOutOfBoundsException when
calling unescapeHtml4("&#03")</action>
- <action type="fix" issue="LANG-708">StringEscapeUtils.escapeEcmaScript
from lang3 cuts off long unicode string</action>
+ <action type="fix" issue="LANG-708">StringEscapeUtils.escapeEcmaScript
from lang3 cuts off long Unicode string</action>
<action type="fix" issue="LANG-703">StringUtils.join throws NPE when
toString returns null for one of objects in collection</action>
<action type="add" issue="LANG-697">Add FormattableUtils class</action>
<action type="add">Add ClassUtils.getSimpleName() methods</action>
@@ -122,7 +122,7 @@
<action type="remove" issue="LANG-492">Remove code handled now by the
JDK.</action>
<action type="add" issue="LANG-482">StrSubstitutor now supports
substitution in variable names.</action>
<action type="fix" issue="LANG-481">Possible race-conditions in hashCode
of the range classes.</action>
- <action type="fix" issue="LANG-480">StringEscapeUtils.escapeHtml
incorrectly converts unicode characters above U+00FFFF into 2
characters.</action>
+ <action type="fix" issue="LANG-480">StringEscapeUtils.escapeHtml
incorrectly converts Unicode characters above U+00FFFF into 2
characters.</action>
<action type="update" issue="LANG-479">Document where in SVN trunk
is.</action>
<action type="fix" issue="LANG-478">StopWatch does not resist to system
time changes.</action>
<action type="fix" issue="LANG-474">Fixes for thread safety.</action>
@@ -325,7 +325,7 @@
<action type="fix" issue="LANG-10">ClassUtils.primitiveToWrapper and
Void</action>
<action type="fix" issue="LANG-37">unit test for
org.apache.commons.lang.text.StrBuilder</action>
<action type="fix" issue="LANG-59">DateUtils.truncate method is buggy when
dealing with DST switching hours</action>
- <action type="fix" issue="LANG-100">RandomStringUtils.random() family of
methods create invalid unicode sequences</action>
+ <action type="fix" issue="LANG-100">RandomStringUtils.random() family of
methods create invalid Unicode sequences</action>
<action type="fix" issue="LANG-106">StringUtils#getLevenshteinDistance()
performance is sub-optimal</action>
<action type="fix" issue="LANG-112">Wrong length check in
StrTokenizer.StringMatcher</action>
<action type="fix" issue="LANG-105">ExceptionUtils goes into infinite loop
in getThrowables is throwable.getCause() == throwable</action>
Modified: commons/proper/lang/trunk/src/site/xdoc/article3_0.xml
URL:
http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/site/xdoc/article3_0.xml?rev=1148520&r1=1148519&r2=1148520&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/site/xdoc/article3_0.xml (original)
+++ commons/proper/lang/trunk/src/site/xdoc/article3_0.xml Tue Jul 19 20:53:23
2011
@@ -184,7 +184,7 @@ available in the <a href="userguide.html
<ul>
<li>StringUtils.isAlpha, isNumeric and isAlphanumeric now all return false
when passed an empty String. Previously they returned true. </li>
<li>SystemUtils.isJavaVersionAtLeast now relies on the
<code>java.specification.version</code> and not the <code>java.version</code>
System property. </li>
-<li>StringEscapeUtils.escapeXml and escapeHtml no longer escape high value
unicode characters by default. The text.translate package is available to
recreate the old behaviour. </li>
+<li>StringEscapeUtils.escapeXml and escapeHtml no longer escape high value
Unicode characters by default. The text.translate package is available to
recreate the old behaviour. </li>
</ul>
</section>
Modified: commons/proper/lang/trunk/src/site/xdoc/upgradeto2_2.xml
URL:
http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/site/xdoc/upgradeto2_2.xml?rev=1148520&r1=1148519&r2=1148520&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/site/xdoc/upgradeto2_2.xml (original)
+++ commons/proper/lang/trunk/src/site/xdoc/upgradeto2_2.xml Tue Jul 19
20:53:23 2011
@@ -53,7 +53,7 @@ BUG FIXES IN 2.2:
<a href="https://issues.apache.org/jira/browse/LANG-45">LANG-45</a>
StrBuilderTest#testReplaceStringString fails.
<a href="https://issues.apache.org/jira/browse/LANG-50">LANG-50</a> Replace
Clover with Cobertura
<a href="https://issues.apache.org/jira/browse/LANG-59">LANG-59</a>
DateUtils.truncate method is buggy when dealing with DST switching hours
-<a href="https://issues.apache.org/jira/browse/LANG-100">LANG-100</a>
RandomStringUtils.random() family of methods create invalid unicode sequences
+<a href="https://issues.apache.org/jira/browse/LANG-100">LANG-100</a>
RandomStringUtils.random() family of methods create invalid Unicode sequences
<a href="https://issues.apache.org/jira/browse/LANG-105">LANG-105</a>
ExceptionUtils goes into infinite loop in getThrowables is throwable.getCause()
== throwable
<a href="https://issues.apache.org/jira/browse/LANG-106">LANG-106</a>
StringUtils#getLevenshteinDistance() performance is sub-optimal
<a href="https://issues.apache.org/jira/browse/LANG-112">LANG-112</a> Wrong
length check in StrTokenizer.StringMatcher
Modified: commons/proper/lang/trunk/src/site/xdoc/upgradeto3_0.xml
URL:
http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/site/xdoc/upgradeto3_0.xml?rev=1148520&r1=1148519&r2=1148520&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/site/xdoc/upgradeto3_0.xml (original)
+++ commons/proper/lang/trunk/src/site/xdoc/upgradeto3_0.xml Tue Jul 19
20:53:23 2011
@@ -133,7 +133,7 @@ BUG FIXES IN 3.0
[LANG-468] JDK 1.5 build/runtime failure on LANG-393 (EqualsBuilder).
[LANG-474] Fixes for thread safety.
[LANG-478] StopWatch does not resist to system time changes.
- [LANG-480] StringEscapeUtils.escapeHtml incorrectly converts unicode
characters above U+00FFFF into 2 characters.
+ [LANG-480] StringEscapeUtils.escapeHtml incorrectly converts Unicode
characters above U+00FFFF into 2 characters.
[LANG-481] Possible race-conditions in hashCode of the range classes.
[LANG-564] Improve StrLookup API documentation.
[LANG-568] @SuppressWarnings("unchecked") is used too generally.
Modified:
commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringEscapeUtilsTest.java
URL:
http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringEscapeUtilsTest.java?rev=1148520&r1=1148519&r2=1148520&view=diff
==============================================================================
---
commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringEscapeUtilsTest.java
(original)
+++
commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringEscapeUtilsTest.java
Tue Jul 19 20:53:23 2011
@@ -80,7 +80,7 @@ public class StringEscapeUtilsTest {
assertEscapeJava("\\u0234", "\u0234");
assertEscapeJava("\\u00EF", "\u00ef");
assertEscapeJava("\\u0001", "\u0001");
- assertEscapeJava("Should use capitalized unicode hex", "\\uABCD",
"\uabcd");
+ assertEscapeJava("Should use capitalized Unicode hex", "\\uABCD",
"\uabcd");
assertEscapeJava("He didn't say, \\\"stop!\\\"",
"He didn't say, \"stop!\"");
@@ -151,9 +151,9 @@ public class StringEscapeUtilsTest {
assertUnescapeJava("'\foo\teste\r", "\\'\\foo\\teste\\r");
assertUnescapeJava("", "\\");
//foo
- assertUnescapeJava("lowercase unicode", "\uABCDx", "\\uabcdx");
- assertUnescapeJava("uppercase unicode", "\uABCDx", "\\uABCDx");
- assertUnescapeJava("unicode as final character", "\uABCD", "\\uabcd");
+ assertUnescapeJava("lowercase Unicode", "\uABCDx", "\\uabcdx");
+ assertUnescapeJava("uppercase Unicode", "\uABCDx", "\\uABCDx");
+ assertUnescapeJava("Unicode as final character", "\uABCD", "\\uabcd");
}
private void assertUnescapeJava(String unescaped, String original) throws
IOException {
@@ -252,7 +252,7 @@ public class StringEscapeUtilsTest {
assertEquals(message, expected, actual);
}
// \u00E7 is a cedilla (c with wiggle under)
- // note that the test string must be 7-bit-clean (unicode escaped) or
else it will compile incorrectly
+ // note that the test string must be 7-bit-clean (Unicode escaped) or
else it will compile incorrectly
// on some locales
assertEquals("funny chars pass through OK", "Fran\u00E7ais",
StringEscapeUtils.unescapeHtml4("Fran\u00E7ais"));
@@ -448,21 +448,21 @@ public class StringEscapeUtilsTest {
public void testEscapeHtmlHighUnicode() throws
java.io.UnsupportedEncodingException {
// this is the utf8 representation of the character:
// COUNTING ROD UNIT DIGIT THREE
- // in unicode
+ // in Unicode
// codepoint: U+1D362
byte[] data = new byte[] { (byte)0xF0, (byte)0x9D, (byte)0x8D,
(byte)0xA2 };
String original = new String(data, "UTF8");
String escaped = StringEscapeUtils.escapeHtml4( original );
- assertEquals( "High unicode should not have been escaped", original,
escaped);
+ assertEquals( "High Unicode should not have been escaped", original,
escaped);
String unescaped = StringEscapeUtils.unescapeHtml4( escaped );
- assertEquals( "High unicode should have been unchanged", original,
unescaped);
+ assertEquals( "High Unicode should have been unchanged", original,
unescaped);
// TODO: I think this should hold, needs further investigation
// String unescapedFromEntity = StringEscapeUtils.unescapeHtml4(
"𝍢" );
-// assertEquals( "High unicode should have been unescaped", original,
unescapedFromEntity);
+// assertEquals( "High Unicode should have been unescaped", original,
unescapedFromEntity);
}
/**
@@ -470,15 +470,15 @@ public class StringEscapeUtilsTest {
*/
@Test
public void testEscapeHiragana() {
- // Some random Japanese unicode characters
+ // Some random Japanese Unicode characters
String original = "\u304B\u304C\u3068";
String escaped = StringEscapeUtils.escapeHtml4(original);
- assertEquals( "Hiragana character unicode behaviour should not be
being escaped by escapeHtml4",
+ assertEquals( "Hiragana character Unicode behaviour should not be
being escaped by escapeHtml4",
original, escaped);
String unescaped = StringEscapeUtils.unescapeHtml4( escaped );
- assertEquals( "Hiragana character unicode behaviour has changed -
expected no unescaping", escaped, unescaped);
+ assertEquals( "Hiragana character Unicode behaviour has changed -
expected no unescaping", escaped, unescaped);
}
/**
Modified:
commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/text/translate/UnicodeEscaperTest.java
URL:
http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/text/translate/UnicodeEscaperTest.java?rev=1148520&r1=1148519&r2=1148520&view=diff
==============================================================================
---
commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/text/translate/UnicodeEscaperTest.java
(original)
+++
commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/text/translate/UnicodeEscaperTest.java
Tue Jul 19 20:53:23 2011
@@ -30,7 +30,7 @@ public class UnicodeEscaperTest extends
String input = "ADFGZ";
String result = ue.translate(input);
- assertEquals("Failed to escape unicode characters via the below
method", "\\u0041\\u0044FGZ", result);
+ assertEquals("Failed to escape Unicode characters via the below
method", "\\u0041\\u0044FGZ", result);
}
public void testBetween() {
@@ -38,7 +38,7 @@ public class UnicodeEscaperTest extends
String input = "ADFGZ";
String result = ue.translate(input);
- assertEquals("Failed to escape unicode characters via the between
method", "AD\\u0046\\u0047Z", result);
+ assertEquals("Failed to escape Unicode characters via the between
method", "AD\\u0046\\u0047Z", result);
}
public void testAbove() {
@@ -46,6 +46,6 @@ public class UnicodeEscaperTest extends
String input = "ADFGZ";
String result = ue.translate(input);
- assertEquals("Failed to escape unicode characters via the above
method", "ADF\\u0047\\u005A", result);
+ assertEquals("Failed to escape Unicode characters via the above
method", "ADF\\u0047\\u005A", result);
}
}
Modified:
commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/text/translate/UnicodeUnescaperTest.java
URL:
http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/text/translate/UnicodeUnescaperTest.java?rev=1148520&r1=1148519&r2=1148520&view=diff
==============================================================================
---
commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/text/translate/UnicodeUnescaperTest.java
(original)
+++
commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/text/translate/UnicodeUnescaperTest.java
Tue Jul 19 20:53:23 2011
@@ -30,7 +30,7 @@ public class UnicodeUnescaperTest extend
UnicodeUnescaper uu = new UnicodeUnescaper();
String input = "\\u+0047";
- assertEquals("Failed to unescape unicode characters with 'u+'
notation", "G", uu.translate(input));
+ assertEquals("Failed to unescape Unicode characters with 'u+'
notation", "G", uu.translate(input));
}
public void testUuuuu() {
@@ -38,7 +38,7 @@ public class UnicodeUnescaperTest extend
String input = "\\uuuuuuuu0047";
String result = uu.translate(input);
- assertEquals("Failed to unescape unicode characters with many 'u'
characters", "G", result);
+ assertEquals("Failed to unescape Unicode characters with many 'u'
characters", "G", result);
}
public void testLessThanFour() {
@@ -47,7 +47,7 @@ public class UnicodeUnescaperTest extend
String input = "\\0047\\u006";
try {
uu.translate(input);
- fail("A lack of digits in a unicode escape sequence failed to
throw an exception");
+ fail("A lack of digits in a Unicode escape sequence failed to
throw an exception");
} catch(IllegalArgumentException iae) {
// expected
}