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=
;
byte[] ber2=
;
byte[] ber3=
;
byte[] ber4=
;
byte[] ber5=
;
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());