Commit cfa83060 authored by Sebastian Hans's avatar Sebastian Hans
Browse files

SCP-038 SCP(19)000164

-changes in package cre_reg_evtr are already covered in the previous commit
parent a98ceb74
Loading
Loading
Loading
Loading
+3 −32
Original line number Diff line number Diff line
@@ -528,38 +528,9 @@ public class Api_1_Fvw_Incr_1 extends TestToolkitApplet implements UICCConstants
        reportTestOutcome(testCaseNb, bRes);

        // -----------------------------------------------------------------
        // Test Case 15 : Record not found
        // Test Case 15 : Void
        // Note: this means that baTestsResults will contain '00' for this test case, indicating Void in this case
        //
        testCaseNb = 15;
        try
        {
        	incr = new byte[3];
        	resp = new byte[3];
        	createEFCmd = HandlerBuilder.buildTLVHandler(HandlerBuilder.EDIT_HANDLER, (short)abCreateEF_2C00.length, abCreateEF_2C00, (short)0x00, (short)abCreateEF_2C00.length);
            UiccAdminFileView.createFile(createEFCmd);
            UiccAdminFileView.select((short)0x2C00);
            
            incrOffset = 0;
            incrLength = 3;
            respOffset = 0;
            
            respLength = UiccFileView.increase(incr, incrOffset, incrLength, resp, respOffset);
            bRes = false;
        }
        catch (UICCException e)
        {
            if (e.getReason() == UICCException.RECORD_NOT_FOUND)
                bRes = true;
            else
                bRes = false;
        }
        catch(Exception e)
        {
        	bRes = false;
        }
        
        UiccAdminFileView.deleteFile((short)0x2C00);
        reportTestOutcome(testCaseNb, bRes);

        // -----------------------------------------------------------------
        // Test Case 16 : incrLength out of range
+3 −1
Original line number Diff line number Diff line
@@ -659,6 +659,8 @@ public class Test_Cre_Pcs_Spco extends UiccTestModel {
        
        //Lock Applet3 (testcase 14-14)
        response = test.lockApplication(APPLET_AID_3);
        // Send a status command to be sure to retrieve the correct status word in the RAPDU
        response = test.status("00","0C","00");
        // Fetch the SetUpMenu
        response = test.fetch(response.getStatusWord().substring(2));
        addResult(response.checkData("D01C8103 01250082 02818285 09554943" +
@@ -697,7 +699,7 @@ public class Test_Cre_Pcs_Spco extends UiccTestModel {
                                     "034D656E 75335108 00000390 00000390") ||
                  response.checkData("D02E8103 01250082 02818285 09554943" +
                                     "43205445 53548F06 024D656E 75328F06" +
                                     "024D656E 7533D108 00000390 00000390"));
                                     "034D656E 7533D108 00000390 00000390"));
        response = test.terminalResponse("81030125 00820282 81830100");                                    
        addResult(response.checkSw("9000"));