You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Tony Wu (JIRA)" <ji...@apache.org> on 2007/06/19 07:10:26 UTC

[jira] Commented: (HARMONY-4226) [classlib][jndi] Class SortResponseControl has some failures

    [ https://issues.apache.org/jira/browse/HARMONY-4226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12506046 ] 

Tony Wu commented on HARMONY-4226:
----------------------------------

Hi Kelvin,
This patch brings extra dependency from security to jndi. I suggest that we use the Messages.java in jndi rather than that in security.

> [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
>            Assignee: Tony Wu
>         Attachments: harmony-4226.zip
>
>
> 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.