@Test public void is3DSecureFlexFlowReturnsFalseWhenDirectResponseDataIsLegacyFlow() { when(directResponseDataMock.getTransactionStatus()).thenReturn(TransactionStatus.AUTHENTICATION_REQUIRED); when(directResponseDataMock.getIssuerURL()).thenReturn(ISSUER_URL); when(directResponseDataMock.getPaRequest()).thenReturn(PA_REQUEST); final Boolean result = testObj.is3DSecureFlexFlow(directResponseDataMock); assertThat(result).isFalse(); }
@Override public Boolean is3DSecureFlexFlow(final DirectResponseData directResponseData) { return isAuthenticationRequired(directResponseData) && areResponseFlexMandatoryAttributesPopulated(directResponseData); }
DefaultWorldpayDirectResponseService implements WorldpayDirectResponseService { @Override public Boolean is3DSecureFlexFlow(final DirectResponseData directResponseData) { return isAuthenticationRequired(directResponseData) && areResponseFlexMandatoryAttributesPopulated(directResponseData); } }
DefaultWorldpayDirectResponseService implements WorldpayDirectResponseService { @Override public Boolean is3DSecureFlexFlow(final DirectResponseData directResponseData) { return isAuthenticationRequired(directResponseData) && areResponseFlexMandatoryAttributesPopulated(directResponseData); }  }
DefaultWorldpayDirectResponseService implements WorldpayDirectResponseService { @Override public Boolean is3DSecureFlexFlow(final DirectResponseData directResponseData) { return isAuthenticationRequired(directResponseData) && areResponseFlexMandatoryAttributesPopulated(directResponseData); }  @Override Boolean isAuthorised(final DirectResponseData directResponseData); @Override Boolean isCancelled(final DirectResponseData directResponseData); @Override Boolean is3DSecureLegacyFlow(final DirectResponseData directResponseData); @Override Boolean is3DSecureFlexFlow(final DirectResponseData directResponseData); }
DefaultWorldpayDirectResponseService implements WorldpayDirectResponseService { @Override public Boolean is3DSecureFlexFlow(final DirectResponseData directResponseData) { return isAuthenticationRequired(directResponseData) && areResponseFlexMandatoryAttributesPopulated(directResponseData); }  @Override Boolean isAuthorised(final DirectResponseData directResponseData); @Override Boolean isCancelled(final DirectResponseData directResponseData); @Override Boolean is3DSecureLegacyFlow(final DirectResponseData directResponseData); @Override Boolean is3DSecureFlexFlow(final DirectResponseData directResponseData);  }