Class PaymentIntegrationTest

  • All Implemented Interfaces:
    de.hybris.platform.testframework.JaloSessionHolder

    @IntegrationTest
    public class PaymentIntegrationTest
    extends de.hybris.platform.servicelayer.ServicelayerTest
    • Field Summary

      • Fields inherited from class de.hybris.platform.servicelayer.ServicelayerTest

        importService
      • Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test

        jaloSession
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void assertStep​(BusinessProcessModel process, java.lang.String bean)  
      protected OrderProcessModel createProcess​(java.lang.String processName)  
      protected static java.lang.Object getBean​(java.lang.String name)  
      protected OrderModel placeTestOrder​(boolean valid)  
      static void prepare()  
      static void removeProcessDefinitions()  
      void resetServices()  
      protected void setResultForAction​(java.lang.String action, java.lang.String result)  
      void setUpProductCatalogue()  
      void testPaymentIntegrationAccepted()  
      void testPaymentIntegrationDeclined()  
      • Methods inherited from class de.hybris.platform.servicelayer.ServicelayerTest

        createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNone
      • Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest

        autowireProperties, getBeanName, prepareApplicationContextAndSession
      • Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test

        establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PaymentIntegrationTest

        public PaymentIntegrationTest()
    • Method Detail

      • prepare

        public static void prepare()
                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • setUpProductCatalogue

        public void setUpProductCatalogue()
      • removeProcessDefinitions

        public static void removeProcessDefinitions()
      • resetServices

        public void resetServices()
      • testPaymentIntegrationAccepted

        public void testPaymentIntegrationAccepted()
                                            throws java.lang.InterruptedException,
                                                   de.hybris.platform.order.exceptions.CalculationException
        Throws:
        java.lang.InterruptedException
        de.hybris.platform.order.exceptions.CalculationException
      • testPaymentIntegrationDeclined

        public void testPaymentIntegrationDeclined()
                                            throws java.lang.InterruptedException,
                                                   de.hybris.platform.order.exceptions.CalculationException
        Throws:
        java.lang.InterruptedException
        de.hybris.platform.order.exceptions.CalculationException
      • placeTestOrder

        protected OrderModel placeTestOrder​(boolean valid)
                                     throws de.hybris.platform.order.InvalidCartException,
                                            de.hybris.platform.order.exceptions.CalculationException
        Throws:
        de.hybris.platform.order.InvalidCartException
        de.hybris.platform.order.exceptions.CalculationException
      • createProcess

        protected OrderProcessModel createProcess​(java.lang.String processName)
      • assertStep

        protected void assertStep​(BusinessProcessModel process,
                                  java.lang.String bean)
                           throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • setResultForAction

        protected void setResultForAction​(java.lang.String action,
                                          java.lang.String result)
      • getBean

        protected static java.lang.Object getBean​(java.lang.String name)