commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject cvs commit: jakarta-commons-sandbox/lang/src/test/org/apache/commons/lang StringsSubstringTest.java
Date Sat, 13 Jul 2002 05:56:10 GMT
bayard      2002/07/12 22:56:10

  Modified:    lang/src/test/org/apache/commons/lang
                        StringsSubstringTest.java
  Log:
  Added tests for getNestedString
  
  Revision  Changes    Path
  1.5       +10 -1     jakarta-commons-sandbox/lang/src/test/org/apache/commons/lang/StringsSubstringTest.java
  
  Index: StringsSubstringTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/lang/src/test/org/apache/commons/lang/StringsSubstringTest.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- StringsSubstringTest.java	10 Jul 2002 22:35:29 -0000	1.4
  +++ StringsSubstringTest.java	13 Jul 2002 05:56:10 -0000	1.5
  @@ -200,4 +200,13 @@
                Strings.countMatches("oooooooooooo", "ooo"));
       }
   
  +    public void testGetNestedString() {
  +        assertEquals( "", Strings.getNestedString("", "") );
  +        assertEquals( "", Strings.getNestedString("    ", " ") );
  +        assertEquals( "bar", Strings.getNestedString("\nbar\n", "\n") );
  +        assertEquals( "", Strings.getNestedString("", "", "") );
  +        assertEquals( "", Strings.getNestedString("    ", " ", "  ") );
  +        assertEquals( "bar", Strings.getNestedString("<foo>bar</foo>", "<foo>",
"</foo>") );
  +    }
  +
   }
  
  
  

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


Mime
View raw message