Class DefaultAlipayPaymentServiceTest

java.lang.Object
de.hybris.platform.chinesepspalipayservices.payment.DefaultAlipayPaymentServiceTest

@UnitTest public class DefaultAlipayPaymentServiceTest extends Object
  • Constructor Details

    • DefaultAlipayPaymentServiceTest

      public DefaultAlipayPaymentServiceTest()
  • Method Details

    • prepare

      public void prepare()
    • testCreateAlipayRefundRequestDataByOrderSuccessfully

      public void testCreateAlipayRefundRequestDataByOrderSuccessfully()
    • testCreateAlipayRefundRequestDataByOrderWithUnpaidOrder

      public void testCreateAlipayRefundRequestDataByOrderWithUnpaidOrder()
    • testHandleNotificationwithinValidResponse

      public void testHandleNotificationwithinValidResponse()
    • testGetUrlEncodePattern

      public void testGetUrlEncodePattern()
    • testGetPspLogoUrl

      public void testGetPspLogoUrl()
    • testUnifyRequestParameterValue

      public void testUnifyRequestParameterValue()
    • testConvertKey2CamelCase

      public void testConvertKey2CamelCase()
    • testGetOrderModelByCode

      public void testGetOrderModelByCode()
    • testSetPaymentInfo

      public void testSetPaymentInfo()
    • testHandleReturnInfo

      public void testHandleReturnInfo() throws IOException
      Throws:
      IOException
    • testCreateAlipayCancelPaymentRequestDataByOrder

      public void testCreateAlipayCancelPaymentRequestDataByOrder()
    • testCreateAlipayPaymentStatusRequestDataByOrder

      public void testCreateAlipayPaymentStatusRequestDataByOrder()
    • testCancelPaymentOnPaidStatus

      public void testCancelPaymentOnPaidStatus()
    • testCancelPaymentOnNotPaidStatus

      public void testCancelPaymentOnNotPaidStatus() throws Exception
      Throws:
      Exception
    • testSyncPaymentStatus

      public void testSyncPaymentStatus() throws Exception
      Throws:
      Exception
    • testHandleSyncResponse

      public void testHandleSyncResponse() throws IOException
      Throws:
      IOException
    • testHandleErrorResponse

      public void testHandleErrorResponse()
    • testHandleAsyncResponseDirectNotify

      public void testHandleAsyncResponseDirectNotify() throws IOException
      Throws:
      IOException
    • testHandleAsyncResponseErrorNotify

      public void testHandleAsyncResponseErrorNotify() throws IOException
      Throws:
      IOException
    • testHandleAsyncResponseRefundNotify

      public void testHandleAsyncResponseRefundNotify() throws IOException
      Throws:
      IOException
    • testGetPaymentRequestUrl

      public void testGetPaymentRequestUrl() throws Exception
      Throws:
      Exception
    • testGetRefundRequestUrl

      public void testGetRefundRequestUrl() throws Exception
      Throws:
      Exception
    • testCreateAlipayDirectPayRequestDataByOrderDirectpay

      public void testCreateAlipayDirectPayRequestDataByOrderDirectpay()
    • testCreateAlipayDirectPayRequestDataByOrderNonDirectpay

      public void testCreateAlipayDirectPayRequestDataByOrderNonDirectpay()