directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1516732 - in /directory/shared/trunk/integ/src/test/java/org/apache/directory/api/ldap/entry: SchemaAwareAttributeTest.java SchemaAwareEntryTest.java
Date Fri, 23 Aug 2013 08:10:50 GMT
Author: elecharny
Date: Fri Aug 23 08:10:49 2013
New Revision: 1516732

URL: http://svn.apache.org/r1516732
Log:
Testa failing test due to a modification in the Attribute.toString() method

Modified:
    directory/shared/trunk/integ/src/test/java/org/apache/directory/api/ldap/entry/SchemaAwareAttributeTest.java
    directory/shared/trunk/integ/src/test/java/org/apache/directory/api/ldap/entry/SchemaAwareEntryTest.java

Modified: directory/shared/trunk/integ/src/test/java/org/apache/directory/api/ldap/entry/SchemaAwareAttributeTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/integ/src/test/java/org/apache/directory/api/ldap/entry/SchemaAwareAttributeTest.java?rev=1516732&r1=1516731&r2=1516732&view=diff
==============================================================================
--- directory/shared/trunk/integ/src/test/java/org/apache/directory/api/ldap/entry/SchemaAwareAttributeTest.java
(original)
+++ directory/shared/trunk/integ/src/test/java/org/apache/directory/api/ldap/entry/SchemaAwareAttributeTest.java
Fri Aug 23 08:10:49 2013
@@ -181,14 +181,14 @@ public class SchemaAwareAttributeTest
         }
     }
 
-    
+
     @BeforeClass
     public static void startup() throws Exception
     {
         schemaManager = new DefaultSchemaManager();
     }
-    
-    
+
+
     /**
      * Initialize the schemaManager
      */
@@ -1020,20 +1020,20 @@ public class SchemaAwareAttributeTest
         attr9.add( BYTES2 );
         attr10.add( "a", "b" );
         assertFalse( attr9.equals( attr10 ) );
-        
+
         Attribute attr11 = new DefaultAttribute( atPwd, BYTES1 );
         Attribute attr12 = new DefaultAttribute( atPwd, BYTES1 );
-        
+
         assertTrue( attr11.get().equals( attr12.get() ) );
         assertTrue( attr12.get().equals( attr11.get() ) );
 
         Attribute attr13 = new DefaultAttribute( "userPassword", BYTES1 );
-        
+
         assertTrue( attr11.get().equals( attr13.get() ) );
         assertTrue( attr13.get().equals( attr11.get() ) );
-        
+
         Attribute attr14 = new DefaultAttribute( "userPassword", BYTES1 );
-        
+
         assertTrue( attr14.get().equals( attr13.get() ) );
         assertTrue( attr13.get().equals( attr14.get() ) );
     }
@@ -1506,17 +1506,17 @@ public class SchemaAwareAttributeTest
     {
         Attribute attr = new DefaultAttribute( atEMail );
 
-        assertEquals( "email: (null)\n", attr.toString() );
+        assertEquals( "email: (null)", attr.toString() );
 
         attr.setUpId( "EMail" );
-        assertEquals( "EMail: (null)\n", attr.toString() );
+        assertEquals( "EMail: (null)", attr.toString() );
 
         attr.add( ( String ) null );
-        assertEquals( "EMail: ''\n", attr.toString() );
+        assertEquals( "EMail: ''", attr.toString() );
 
         attr.clear();
         attr.add( "a", "b" );
-        assertEquals( "EMail: a\nEMail: b\n", attr.toString() );
+        assertEquals( "EMail: a\nEMail: b", attr.toString() );
     }
 
 

Modified: directory/shared/trunk/integ/src/test/java/org/apache/directory/api/ldap/entry/SchemaAwareEntryTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/integ/src/test/java/org/apache/directory/api/ldap/entry/SchemaAwareEntryTest.java?rev=1516732&r1=1516731&r2=1516732&view=diff
==============================================================================
--- directory/shared/trunk/integ/src/test/java/org/apache/directory/api/ldap/entry/SchemaAwareEntryTest.java
(original)
+++ directory/shared/trunk/integ/src/test/java/org/apache/directory/api/ldap/entry/SchemaAwareEntryTest.java
Fri Aug 23 08:10:49 2013
@@ -1142,7 +1142,7 @@ public class SchemaAwareEntryTest
     {
         Entry entry = new DefaultEntry( EXAMPLE_DN );
 
-        assertEquals( "Entry\n    dn: dc=example,dc=com\n", entry.toString() );
+        assertEquals( "Entry\n    dn: dc=example,dc=com\n\n", entry.toString() );
 
         Value<String> strValueTop = new StringValue( "top" );
         Value<String> strValuePerson = new StringValue( "person" );



Mime
View raw message