directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r557920 - /directory/studio/trunk/studio-apacheds-schemaeditor/src/test/java/org/apache/directory/studio/apacheds/schemaeditor/model/difference/DifferenceEngineTest.java
Date Fri, 20 Jul 2007 08:19:13 GMT
Author: pamarcelot
Date: Fri Jul 20 01:19:12 2007
New Revision: 557920

URL: http://svn.apache.org/viewvc?view=rev&rev=557920
Log:
Added more clauses for tests.

Modified:
    directory/studio/trunk/studio-apacheds-schemaeditor/src/test/java/org/apache/directory/studio/apacheds/schemaeditor/model/difference/DifferenceEngineTest.java

Modified: directory/studio/trunk/studio-apacheds-schemaeditor/src/test/java/org/apache/directory/studio/apacheds/schemaeditor/model/difference/DifferenceEngineTest.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-apacheds-schemaeditor/src/test/java/org/apache/directory/studio/apacheds/schemaeditor/model/difference/DifferenceEngineTest.java?view=diff&rev=557920&r1=557919&r2=557920
==============================================================================
--- directory/studio/trunk/studio-apacheds-schemaeditor/src/test/java/org/apache/directory/studio/apacheds/schemaeditor/model/difference/DifferenceEngineTest.java
(original)
+++ directory/studio/trunk/studio-apacheds-schemaeditor/src/test/java/org/apache/directory/studio/apacheds/schemaeditor/model/difference/DifferenceEngineTest.java
Fri Jul 20 01:19:12 2007
@@ -732,6 +732,7 @@
         }
 
         assertEquals( "name1", ( ( AliasDifference ) difference ).getOldValue() );
+        assertNull( ( ( AliasDifference ) difference ).getNewValue() );
     }
 
 
@@ -758,6 +759,7 @@
             fail();
         }
 
+        assertEquals( "Description", ( ( DescriptionDifference ) difference ).getOldValue()
);
         assertNull( ( ( DescriptionDifference ) difference ).getNewValue() );
     }
 
@@ -784,6 +786,7 @@
             fail();
         }
 
+        assertEquals( "equalityName", ( ( EqualityDifference ) difference ).getOldValue()
);
         assertNull( ( ( EqualityDifference ) difference ).getNewValue() );
     }
 
@@ -815,6 +818,7 @@
         }
 
         assertEquals( "must1", ( ( MandatoryATDifference ) difference ).getOldValue() );
+        assertNull( ( ( MandatoryATDifference ) difference ).getNewValue() );
     }
 
 
@@ -845,6 +849,7 @@
         }
 
         assertEquals( "may1", ( ( OptionalATDifference ) difference ).getOldValue() );
+        assertNull( ( ( OptionalATDifference ) difference ).getNewValue() );
     }
 
 
@@ -870,6 +875,7 @@
             fail();
         }
 
+        assertEquals( "orderingName", ( ( OrderingDifference ) difference ).getOldValue()
);
         assertNull( ( ( OrderingDifference ) difference ).getNewValue() );
     }
 
@@ -897,6 +903,7 @@
             fail();
         }
 
+        assertEquals( "substrName", ( ( SubstringDifference ) difference ).getOldValue()
);
         assertNull( ( ( SubstringDifference ) difference ).getNewValue() );
     }
 
@@ -924,6 +931,7 @@
             fail();
         }
 
+        assertEquals( "superiorName", ( ( SuperiorATDifference ) difference ).getOldValue()
);
         assertNull( ( ( SuperiorATDifference ) difference ).getNewValue() );
     }
 
@@ -955,6 +963,7 @@
         }
 
         assertEquals( "sup1", ( ( SuperiorOCDifference ) difference ).getOldValue() );
+        assertNull( ( ( SuperiorOCDifference ) difference ).getNewValue() );
     }
 
 
@@ -980,6 +989,7 @@
             fail();
         }
 
+        assertEquals( "1.2.3.4.5", ( ( SyntaxDifference ) difference ).getOldValue() );
         assertNull( ( ( SyntaxDifference ) difference ).getNewValue() );
     }
 
@@ -1007,6 +1017,7 @@
             fail();
         }
 
+        assertEquals( 1234, ( ( SyntaxLengthDifference ) difference ).getOldValue() );
         assertNull( ( ( SyntaxLengthDifference ) difference ).getNewValue() );
     }
 }



Mime
View raw message