test_class.declarator: deleteProfileWorker
test_class.modifier: private
test_class.original_string: private DeleteProfileWorker deleteProfileWorker;
test_class.type: DeleteProfileWorker
test_class.var_name: deleteProfileWorker
test_class.declarator: mockProgress
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private Progress mockProgress;
test_class.type: Progress
test_class.var_name: mockProgress
test_class.declarator: mockApduChannel
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private ApduChannel mockApduChannel;
test_class.type: ApduChannel
test_class.var_name: mockApduChannel
test_class.file: lpad_sm-dpplus_connector/src/test/java/com/truphone/lpad/worker/DeleteProfileWorkerTest.java
test_class.identifier: DeleteProfileWorkerTest
test_case.body: @Test
      public void theTransmissionFailedUndefinedError(){
          String iccid = "89445035401458888888";
          String eResponse = ToTLV.toTLV("BF33", ToTLV.toTLV("80", "7F")); //7F
          when(mockApduChannel.transmitAPDU(any(String.class))).thenReturn(eResponse);
          deleteProfileWorker.run(buildLpadWorkerExchange(buildDeleteProfileInputParams(iccid)));
  
          verify(mockProgress, times(1)).setTotalSteps(3);
          verify(mockProgress, times(1))
                  .stepExecuted(ProgressStep.DELETE_PROFILE_DELETING_PROFILE, iccid + " delete profile");
          verify(mockProgress, times(1))
                  .stepExecuted(ProgressStep.DELETE_PROFILE_CONVERTING_RESPONSE, "Converting response");
          verify(mockApduChannel, times(0)).sendStatus();
  
          verify(mockProgress, times(0))
                  .stepExecuted(ProgressStep.DELETE_PROFILE_DELETED, iccid + " deleted successfully");
          verify(mockProgress, times(1))
                  .stepExecuted(ProgressStep.DELETE_PROFILE_NOT_DELETED, iccid + " profile not deleted");
      }
test_case.class_method_signature: DeleteProfileWorkerTest.theTransmissionFailedUndefinedError()
test_case.full_signature: @Test public void theTransmissionFailedUndefinedError()
test_case.identifier: theTransmissionFailedUndefinedError
test_case.invocations: toTLV toTLV thenReturn when transmitAPDU any run buildLpadWorkerExchange buildDeleteProfileInputParams setTotalSteps verify times stepExecuted verify times stepExecuted verify times sendStatus verify times stepExecuted verify times stepExecuted verify times
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void theTransmissionFailedUndefinedError()
focal_class.declarator: LOG = Logger.getLogger(DeleteProfileWorker.class.getName())
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOG = Logger.getLogger(DeleteProfileWorker.class.getName());
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.declarator: progress
focal_class.modifier: private final
focal_class.original_string: private final Progress progress;
focal_class.type: Progress
focal_class.var_name: progress
focal_class.declarator: apduChannel
focal_class.modifier: private final
focal_class.original_string: private final ApduChannel apduChannel;
focal_class.type: ApduChannel
focal_class.var_name: apduChannel
focal_class.declarator: PROFILE_RESULT_SUCCESS = "0"
focal_class.modifier: static final
focal_class.original_string: static final String PROFILE_RESULT_SUCCESS = "0";
focal_class.type: String
focal_class.var_name: PROFILE_RESULT_SUCCESS
focal_class.file: lpad_sm-dpplus_connector/src/main/java/com/truphone/lpad/worker/DeleteProfileWorker.java
focal_class.identifier: DeleteProfileWorker
focal_class.interfaces: implements LpadWorker<LpadWorkerExchange<DeleteProfileWorker.DeleteProfileInputParams>, String>
focal_class.class_method_signature: DeleteProfileWorker.DeleteProfileWorker(Progress progress, ApduChannel apduChannel)
focal_class.full_signature: public  DeleteProfileWorker(Progress progress, ApduChannel apduChannel)
focal_class.identifier: DeleteProfileWorker
focal_class.modifiers: public
focal_class.parameters: (Progress progress, ApduChannel apduChannel)
focal_class.signature:  DeleteProfileWorker(Progress progress, ApduChannel apduChannel)
focal_class.class_method_signature: DeleteProfileWorker.run(final LpadWorkerExchange<DeleteProfileInputParams> lpadWorkerExchange)
focal_class.full_signature: public String run(final LpadWorkerExchange<DeleteProfileInputParams> lpadWorkerExchange)
focal_class.identifier: run
focal_class.modifiers: public
focal_class.parameters: (final LpadWorkerExchange<DeleteProfileInputParams> lpadWorkerExchange)
focal_class.return: String
focal_class.signature: String run(final LpadWorkerExchange<DeleteProfileInputParams> lpadWorkerExchange)
focal_class.class_method_signature: DeleteProfileWorker.convertDeleteProfile(String iccid, Progress progress, String eResponse)
focal_class.full_signature: private String convertDeleteProfile(String iccid, Progress progress, String eResponse)
focal_class.identifier: convertDeleteProfile
focal_class.modifiers: private
focal_class.parameters: (String iccid, Progress progress, String eResponse)
focal_class.return: String
focal_class.signature: String convertDeleteProfile(String iccid, Progress progress, String eResponse)
focal_class.class_method_signature: DeleteProfileWorker.transmitDeleteProfile(String iccid, Progress progress)
focal_class.full_signature: private String transmitDeleteProfile(String iccid, Progress progress)
focal_class.identifier: transmitDeleteProfile
focal_class.modifiers: private
focal_class.parameters: (String iccid, Progress progress)
focal_class.return: String
focal_class.signature: String transmitDeleteProfile(String iccid, Progress progress)
focal_class.class_method_signature: DeleteProfileWorker.logDebug(final String errorMessage)
focal_class.full_signature: private void logDebug(final String errorMessage)
focal_class.identifier: logDebug
focal_class.modifiers: private
focal_class.parameters: (final String errorMessage)
focal_class.return: void
focal_class.signature: void logDebug(final String errorMessage)
focal_class.class_method_signature: DeleteProfileWorker.inputValidation(final boolean invalidCondition, final String errorMessage)
focal_class.full_signature: private void inputValidation(final boolean invalidCondition, final String errorMessage)
focal_class.identifier: inputValidation
focal_class.modifiers: private
focal_class.parameters: (final boolean invalidCondition, final String errorMessage)
focal_class.return: void
focal_class.signature: void inputValidation(final boolean invalidCondition, final String errorMessage)
focal_method.body: public String run(final LpadWorkerExchange<DeleteProfileInputParams> lpadWorkerExchange) {
  
          inputValidation(lpadWorkerExchange == null, "Input params to invoke Delete Profile must not be null");
          inputValidation(lpadWorkerExchange.getBody() == null, "Input params must have body defined");
          inputValidation(StringUtils.isBlank(lpadWorkerExchange.getBody().getIccid()), "ICCID must not be null/empty");
  
          String iccid = lpadWorkerExchange.getBody().getIccid(); // Get ICCID From Body
          String eResponse = transmitDeleteProfile(iccid, progress);
  
          return convertDeleteProfile(iccid, progress, eResponse);
      }
focal_method.class_method_signature: DeleteProfileWorker.run(final LpadWorkerExchange<DeleteProfileInputParams> lpadWorkerExchange)
focal_method.full_signature: public String run(final LpadWorkerExchange<DeleteProfileInputParams> lpadWorkerExchange)
focal_method.identifier: run
focal_method.invocations: inputValidation inputValidation getBody inputValidation isBlank getIccid getBody getIccid getBody transmitDeleteProfile convertDeleteProfile
focal_method.modifiers: public
focal_method.parameters: (final LpadWorkerExchange<DeleteProfileInputParams> lpadWorkerExchange)
focal_method.return: String
focal_method.signature: String run(final LpadWorkerExchange<DeleteProfileInputParams> lpadWorkerExchange)