(doc) Use the full alphabet for the well-known example text.

This change adds the missing `s` character.

Signed-off-by: Tobias Gesellchen <tobias@gesellix.de>
This commit is contained in:
Tobias Gesellchen 2017-02-18 14:49:42 +01:00
parent 1661e5519c
commit 954ade4c1a
2 changed files with 6 additions and 6 deletions

View File

@ -52,13 +52,13 @@ import org.apache.commons.lang3.StringUtils;
* Map valuesMap = HashMap();
* valuesMap.put(&quot;animal&quot;, &quot;quick brown fox&quot;);
* valuesMap.put(&quot;target&quot;, &quot;lazy dog&quot;);
* String templateString = &quot;The ${animal} jumped over the ${target}.&quot;;
* String templateString = &quot;The ${animal} jumps over the ${target}.&quot;;
* StrSubstitutor sub = new StrSubstitutor(valuesMap);
* String resolvedString = sub.replace(templateString);
* </pre>
* yielding:
* <pre>
* The quick brown fox jumped over the lazy dog.
* The quick brown fox jumps over the lazy dog.
* </pre>
* <p>
* Also, this class allows to set a default value for unresolved variables.
@ -72,13 +72,13 @@ import org.apache.commons.lang3.StringUtils;
* Map valuesMap = HashMap();
* valuesMap.put(&quot;animal&quot;, &quot;quick brown fox&quot;);
* valuesMap.put(&quot;target&quot;, &quot;lazy dog&quot;);
* String templateString = &quot;The ${animal} jumped over the ${target}. ${undefined.number:-1234567890}.&quot;;
* String templateString = &quot;The ${animal} jumps over the ${target}. ${undefined.number:-1234567890}.&quot;;
* StrSubstitutor sub = new StrSubstitutor(valuesMap);
* String resolvedString = sub.replace(templateString);
* </pre>
* yielding:
* <pre>
* The quick brown fox jumped over the lazy dog. 1234567890.
* The quick brown fox jumps over the lazy dog. 1234567890.
* </pre>
* <p>
* In addition to this usage pattern there are some static convenience methods that

View File

@ -2940,7 +2940,7 @@ public class StringUtilsTest {
*/
@Test
public void testToString() throws UnsupportedEncodingException {
final String expectedString = "The quick brown fox jumped over the lazy dog.";
final String expectedString = "The quick brown fox jumps over the lazy dog.";
byte[] expectedBytes = expectedString.getBytes(Charset.defaultCharset());
// sanity check start
assertArrayEquals(expectedBytes, expectedString.getBytes());
@ -3087,7 +3087,7 @@ public class StringUtilsTest {
*/
@Test
public void testToEncodedString() {
final String expectedString = "The quick brown fox jumped over the lazy dog.";
final String expectedString = "The quick brown fox jumps over the lazy dog.";
String encoding = SystemUtils.FILE_ENCODING;
byte[] expectedBytes = expectedString.getBytes(Charset.defaultCharset());
// sanity check start