directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1621761 - in /directory/shared/trunk/ldap/model/src: main/java/org/apache/directory/api/ldap/model/csn/Csn.java test/java/org/apache/directory/api/ldap/model/csn/CsnTest.java
Date Mon, 01 Sep 2014 12:40:35 GMT
Author: elecharny
Date: Mon Sep  1 12:40:35 2014
New Revision: 1621761

URL: http://svn.apache.org/r1621761
Log:
Fixed a error (a missing break in a switch) and added a test.

Modified:
    directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/csn/Csn.java
    directory/shared/trunk/ldap/model/src/test/java/org/apache/directory/api/ldap/model/csn/CsnTest.java

Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/csn/Csn.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/csn/Csn.java?rev=1621761&r1=1621760&r2=1621761&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/csn/Csn.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/csn/Csn.java
Mon Sep  1 12:40:35 2014
@@ -396,6 +396,9 @@ public class Csn implements Comparable<C
                 {
                     return false;
                 }
+                
+                break;
+                
             default :
                 return false;
         }

Modified: directory/shared/trunk/ldap/model/src/test/java/org/apache/directory/api/ldap/model/csn/CsnTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/test/java/org/apache/directory/api/ldap/model/csn/CsnTest.java?rev=1621761&r1=1621760&r2=1621761&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/test/java/org/apache/directory/api/ldap/model/csn/CsnTest.java
(original)
+++ directory/shared/trunk/ldap/model/src/test/java/org/apache/directory/api/ldap/model/csn/CsnTest.java
Mon Sep  1 12:40:35 2014
@@ -362,4 +362,11 @@ public class CsnTest
         Csn deserializedCSN = new Csn( bytes );
         assertEquals( csn, deserializedCSN );
     }
+    
+    
+    @Test 
+    public void testIsValidCsn()
+    {
+        assertTrue( Csn.isValid( "20100111202217.914000Z#000000#000#000000" ) );
+    }
 }



Mime
View raw message