You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by gg...@apache.org on 2005/07/24 22:09:43 UTC

svn commit: r224650 - /jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/VariableFormatterTest.java

Author: ggregory
Date: Sun Jul 24 13:09:42 2005
New Revision: 224650

URL: http://svn.apache.org/viewcvs?rev=224650&view=rev
Log:
Another new boundary tests for VariableFormatterTest.java.

Modified:
    jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/VariableFormatterTest.java

Modified: jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/VariableFormatterTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/VariableFormatterTest.java?rev=224650&r1=224649&r2=224650&view=diff
==============================================================================
--- jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/VariableFormatterTest.java (original)
+++ jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/VariableFormatterTest.java Sun Jul 24 13:09:42 2005
@@ -32,10 +32,17 @@
 public class VariableFormatterTest extends TestCase {
 
     private static final String KEY_ANIMAL = "animal";
+
     private static final String KEY_TARGET = "target";
+
     static final String REPLACE_TEMPLATE = "The ${animal} jumps over the ${target}.";
+
     static final String REPLACE_TEMPLATE_NO_ESCAPE = "The {animal} jumps over the {target}.";
+
+    static final String REPLACE_TEMPLATE_NO_MARKERS = "The animal jumps over the target.";
+
     static final String REPLACE_TEMPLATE_NO_PREFIX = "The $animal} jumps over the $target}.";
+
     static final String REPLACE_TEMPLATE_NO_SUFFIX = "The ${animal jumps over the ${target.";
 
     private VariableFormatter format;
@@ -238,6 +245,13 @@
      */
     public void testReplaceNoPrefix() {
         testReplaceNoElement(REPLACE_TEMPLATE_NO_PREFIX);
+    }
+
+    /**
+     * Tests a replace template with missing prefix strings.
+     */
+    public void testReplaceNoMarkers() {
+        testReplaceNoElement(REPLACE_TEMPLATE_NO_MARKERS);
     }
 
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org