harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ton...@apache.org
Subject svn commit: r645373 - /harmony/enhanced/classlib/trunk/modules/jndi/src/test/java/org/apache/harmony/jndi/tests/javax/naming/ldap/TestSortResponseControl.java
Date Mon, 07 Apr 2008 05:05:10 GMT
Author: tonywu
Date: Sun Apr  6 22:05:08 2008
New Revision: 645373

URL: http://svn.apache.org/viewvc?rev=645373&view=rev
Log:
Revert and recommit patch for HARMONY-5681 ([classlib][jndi][ldap] - move getSocketFactory
function from LdapClient to LdapUtils)

Modified:
    harmony/enhanced/classlib/trunk/modules/jndi/src/test/java/org/apache/harmony/jndi/tests/javax/naming/ldap/TestSortResponseControl.java

Modified: harmony/enhanced/classlib/trunk/modules/jndi/src/test/java/org/apache/harmony/jndi/tests/javax/naming/ldap/TestSortResponseControl.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/jndi/src/test/java/org/apache/harmony/jndi/tests/javax/naming/ldap/TestSortResponseControl.java?rev=645373&r1=645372&r2=645373&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/jndi/src/test/java/org/apache/harmony/jndi/tests/javax/naming/ldap/TestSortResponseControl.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/jndi/src/test/java/org/apache/harmony/jndi/tests/javax/naming/ldap/TestSortResponseControl.java
Sun Apr  6 22:05:08 2008
@@ -424,39 +424,12 @@
 		}
 	}
 
-    /**
-     * <p>Test method for 'javax.naming.ldap.SortResponseControl.SortResponseControl(String,
boolean, byte[])'</p>
-     */
-    public void testSortResponseControl019() throws IOException{
 
-        String Id="test";
-        boolean crit=false;
-        byte[] ber1={48,1,10,1,0};
-        byte[] ber2={48,5,10,1,3};
-        byte[] ber3={48,3,10,2,3,3};
-        byte[] ber4={48,4,10,1,3,3,3};
-        byte[] ber5={48,8,10,1,3,(byte)128,3,'T','e','s','t'};
-        SortResponseControl src=null;
-        src = new SortResponseControl(Id, crit, ber1);
-        assertEquals(Id, src.getID());
-        assertEquals(src.getResultCode(), 0);
-        src = new SortResponseControl(Id, crit, ber2);
-        assertEquals(src.getResultCode(), 3);
-        src = new SortResponseControl(Id, crit, ber3);
-        assertEquals(src.getResultCode(), 771);
-        src = new SortResponseControl(Id, crit, ber4);
-        assertEquals(src.getResultCode(), 3);
-        src = new SortResponseControl(Id, crit, ber5);
-        assertEquals(src.getResultCode(), 3);
-        assertEquals("Tes", src.getAttributeID());
-    }    
-
-
-    /**
-     * <p>Test method for 'javax.naming.ldap.SortResponseControl.isSorted()'</p>
-     * <p>Here we are testing if the isSorted method returns the correct answer for
sorted results.</p>
-     * <p>The expected result in this case is true.</p>
-     */
+	/**
+	 * <p>Test method for 'javax.naming.ldap.SortResponseControl.isSorted()'</p>
+	 * <p>Here we are testing if the isSorted method returns the correct answer for sorted
results.</p>
+	 * <p>The expected result in this case is true.</p>
+	 */
 	public void testIsSorted001() {
 
 		SortResponseControl src=null;



Mime
View raw message