directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r161385 - in directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/util: ./ MutableStringTest.java
Date Fri, 15 Apr 2005 05:23:11 GMT
Author: elecharny
Date: Thu Apr 14 22:23:09 2005
New Revision: 161385

URL: http://svn.apache.org/viewcvs?view=rev&rev=161385
Log:
Added the Mutable String class

Added:
    directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/util/
    directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/util/MutableStringTest.java

Added: directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/util/MutableStringTest.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/util/MutableStringTest.java?view=auto&rev=161385
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/util/MutableStringTest.java
(added)
+++ directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/util/MutableStringTest.java
Thu Apr 14 22:23:09 2005
@@ -0,0 +1,39 @@
+/*
+ *   Copyright 2005 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+package org.apache.asn1.util;
+
+import junit.framework.Assert;
+import junit.framework.TestCase;
+
+/**
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public class MutableStringTest extends TestCase {
+    public void testEmptyString()
+    {
+        String s = new MutableString().toString();
+        
+     Assert.assertEquals("", s);   
+    }
+
+    public void testNormalString()
+    {
+        String s = new MutableString("abcdef".getBytes()).toString();
+        
+        Assert.assertEquals("abcdef", s);   
+    }
+}



Mime
View raw message