test_class.declarator: getIdWorker
test_class.modifier: private
test_class.original_string: private GetEidLpadWorker getIdWorker;
test_class.type: GetEidLpadWorker
test_class.var_name: getIdWorker
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/GetEidLpadWorkerTest.java
test_class.identifier: GetEidLpadWorkerTest
test_case.body: @Test(expected = IllegalArgumentException.class)
      public void shouldThrowIllegalArgumentExceptionWhenTransmitAPDUReturnEmpty() {
          when(mockApduChannel.transmitAPDU(any(String.class)))
                  .thenReturn("");
  
          getIdWorker.run(buildStringLpadWorkerExchange(ApduUtils.getEIDApdu()));
      }
test_case.class_method_signature: GetEidLpadWorkerTest.shouldThrowIllegalArgumentExceptionWhenTransmitAPDUReturnEmpty()
test_case.full_signature: @Test(expected = IllegalArgumentException.class) public void shouldThrowIllegalArgumentExceptionWhenTransmitAPDUReturnEmpty()
test_case.identifier: shouldThrowIllegalArgumentExceptionWhenTransmitAPDUReturnEmpty
test_case.invocations: thenReturn when transmitAPDU any run buildStringLpadWorkerExchange getEIDApdu
test_case.modifiers: @Test(expected = IllegalArgumentException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldThrowIllegalArgumentExceptionWhenTransmitAPDUReturnEmpty()
focal_class.declarator: LOG = Logger.getLogger(GetEidLpadWorker.class.getName())
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOG = Logger.getLogger(GetEidLpadWorker.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.file: lpad_sm-dpplus_connector/src/main/java/com/truphone/lpad/worker/GetEidLpadWorker.java
focal_class.identifier: GetEidLpadWorker
focal_class.interfaces: implements LpadWorker<LpadWorkerExchange<String>, String>
focal_class.class_method_signature: GetEidLpadWorker.GetEidLpadWorker(final Progress progress,
                              final ApduChannel apduChannel)
focal_class.full_signature: public  GetEidLpadWorker(final Progress progress,
                              final ApduChannel apduChannel)
focal_class.identifier: GetEidLpadWorker
focal_class.modifiers: public
focal_class.parameters: (final Progress progress,
                              final ApduChannel apduChannel)
focal_class.signature:  GetEidLpadWorker(final Progress progress,
                              final ApduChannel apduChannel)
focal_class.class_method_signature: GetEidLpadWorker.run(final LpadWorkerExchange<String> lpadWorkerExchange)
focal_class.full_signature: public String run(final LpadWorkerExchange<String> lpadWorkerExchange)
focal_class.identifier: run
focal_class.modifiers: public
focal_class.parameters: (final LpadWorkerExchange<String> lpadWorkerExchange)
focal_class.return: String
focal_class.signature: String run(final LpadWorkerExchange<String> lpadWorkerExchange)
focal_class.class_method_signature: GetEidLpadWorker.convertGetEuiccData(final String eidapduResponseStr,
                                         final Progress progress)
focal_class.full_signature: private String convertGetEuiccData(final String eidapduResponseStr,
                                         final Progress progress)
focal_class.identifier: convertGetEuiccData
focal_class.modifiers: private
focal_class.parameters: (final String eidapduResponseStr,
                                         final Progress progress)
focal_class.return: String
focal_class.signature: String convertGetEuiccData(final String eidapduResponseStr,
                                         final Progress progress)
focal_class.class_method_signature: GetEidLpadWorker.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: GetEidLpadWorker.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<String> lpadWorkerExchange) {
  
          progress.setTotalSteps(3);
          progress.stepExecuted(ProgressStep.GET_EID_RETRIEVING, "getEID retrieving...");
  
          inputValidation(lpadWorkerExchange == null, "Lpa dWorker Exchange must be provided");
          inputValidation(StringUtils.isBlank(lpadWorkerExchange.getBody()), "EID APDU must be provided");
  
          logDebug("EID APDU: " + lpadWorkerExchange);
  
  
          String eidapduResponseStr = apduChannel.transmitAPDU(lpadWorkerExchange.getBody());
  
          logDebug("Response: " + eidapduResponseStr);
  
          return convertGetEuiccData(eidapduResponseStr, progress);
      }
focal_method.class_method_signature: GetEidLpadWorker.run(final LpadWorkerExchange<String> lpadWorkerExchange)
focal_method.full_signature: public String run(final LpadWorkerExchange<String> lpadWorkerExchange)
focal_method.identifier: run
focal_method.invocations: setTotalSteps stepExecuted inputValidation inputValidation isBlank getBody logDebug transmitAPDU getBody logDebug convertGetEuiccData
focal_method.modifiers: public
focal_method.parameters: (final LpadWorkerExchange<String> lpadWorkerExchange)
focal_method.return: String
focal_method.signature: String run(final LpadWorkerExchange<String> lpadWorkerExchange)