directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r369488 - /directory/trunks/common/ldap/src/test/java/org/apache/ldap/common/codec/LdapMessageTest.java
Date Mon, 16 Jan 2006 14:24:19 GMT
Author: elecharny
Date: Mon Jan 16 06:24:15 2006
New Revision: 369488

URL: http://svn.apache.org/viewcvs?rev=369488&view=rev
Log:
- Fixed the last test
- removed the useless "Assert." prefix.

Modified:
    directory/trunks/common/ldap/src/test/java/org/apache/ldap/common/codec/LdapMessageTest.java

Modified: directory/trunks/common/ldap/src/test/java/org/apache/ldap/common/codec/LdapMessageTest.java
URL: http://svn.apache.org/viewcvs/directory/trunks/common/ldap/src/test/java/org/apache/ldap/common/codec/LdapMessageTest.java?rev=369488&r1=369487&r2=369488&view=diff
==============================================================================
--- directory/trunks/common/ldap/src/test/java/org/apache/ldap/common/codec/LdapMessageTest.java
(original)
+++ directory/trunks/common/ldap/src/test/java/org/apache/ldap/common/codec/LdapMessageTest.java
Mon Jan 16 06:24:15 2006
@@ -16,7 +16,6 @@
  */
 package org.apache.ldap.common.codec;
 
-import junit.framework.Assert;
 import junit.framework.TestCase;
 
 import org.apache.asn1.codec.DecoderException;
@@ -69,7 +68,7 @@
         	return;
         }
 
-        Assert.fail( "We should not reach this point !" );
+        fail( "We should not reach this point !" );
     }
     
     /**
@@ -104,7 +103,7 @@
         	return;
         }
 
-        Assert.fail( "We should not reach this point !" );
+        fail( "We should not reach this point !" );
     }
 
     /**
@@ -139,7 +138,7 @@
         	return;
         }
 
-        Assert.fail( "We should not reach this point !" );
+        fail( "We should not reach this point !" );
     }
 
     /**
@@ -174,7 +173,7 @@
         	return;
         }
 
-        Assert.fail( "We should not reach this point !" );
+        fail( "We should not reach this point !" );
     }
 
 
@@ -240,7 +239,8 @@
 	    	        	String res = de.getMessage();
 	    	        
 	    	        	if ( res.equals( "Bad transition !" ) ||
-	    	        			res.startsWith( "Universal tag " ) )
+	    	        			res.startsWith( "Universal tag " ) ||
+	    	        			res.startsWith( "Truncated PDU" ) )
 	    	        	{
 	    	        		assertTrue( true );
 	    	        	}
@@ -257,6 +257,6 @@
 	        stream.clear();
         }
 
-        Assert.fail( "We should not reach this point !" );
+        assertTrue( true );
     }
 }



Mime
View raw message