Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-4226

[classlib][jndi] Class SortResponseControl has some failures

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • None
    • linux and windows
    • Patch Available

    Description

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

      Attachments

        1. harmony-4226.diff
          10 kB
          Kelvin Ye
        2. harmony-4226.sh
          0.1 kB
          Kelvin Ye

        Activity

          People

            tony.wu Tony Wu
            kelvinye Kelvin Ye
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: