harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kelvin Ye (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-4226) [classlib][jndi] Class SortResponseControl has some failures
Date Tue, 19 Jun 2007 03:39:26 GMT
[classlib][jndi] Class SortResponseControl has some failures
------------------------------------------------------------

                 Key: HARMONY-4226
                 URL: https://issues.apache.org/jira/browse/HARMONY-4226
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
         Environment: linux and windows
            Reporter: Kelvin Ye


Class SortResponseControl will fail in the following test cases, but RI will pass.

        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());

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message