Package de.hybris.platform.payment.impl
Class PaymentTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.servicelayer.ServicelayerTest
-
- de.hybris.platform.payment.impl.PaymentTest
-
- All Implemented Interfaces:
JaloSessionHolder
public class PaymentTest extends ServicelayerTest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classPaymentTest.MockTransactionCodeGenerator
-
Field Summary
-
Fields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importService
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description PaymentTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidcreateCoreData()static voidcreateDefaultCatalog()voidcreateOrder()static voidprepare()voidsetUp()voidtearDown()voidtestAuthorization()voidtestAuthorizationReviewStatus()voidtestAuthorizeWithCode()voidtestAuthorizeWithTransaction()voidtestCapture()voidtestCreateSubscriptionWithoutAuth()voidtestFailedAuthorization()voidtestPaymentInfoCreation()voidtestSubscriptionOperations()-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
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
-
-
-
-
Method Detail
-
prepare
public static void prepare() throws java.lang.Exception- Throws:
java.lang.Exception
-
setUp
public void setUp() throws java.lang.Exception- Throws:
java.lang.Exception
-
tearDown
public void tearDown()
-
createCoreData
public static void createCoreData() throws java.lang.Exception- Throws:
java.lang.Exception
-
createDefaultCatalog
public static void createDefaultCatalog() throws java.lang.Exception- Throws:
java.lang.Exception
-
createOrder
public void createOrder() throws InvalidCartException, java.lang.Exception- Throws:
InvalidCartExceptionjava.lang.Exception
-
testAuthorization
public void testAuthorization()
-
testFailedAuthorization
public void testFailedAuthorization()
-
testAuthorizationReviewStatus
public void testAuthorizationReviewStatus()
-
testPaymentInfoCreation
public void testPaymentInfoCreation()
-
testAuthorizeWithCode
public void testAuthorizeWithCode() throws InvalidCartException- Throws:
InvalidCartException
-
testAuthorizeWithTransaction
public void testAuthorizeWithTransaction() throws InvalidCartException- Throws:
InvalidCartException
-
testCapture
public void testCapture() throws InvalidCartException, CalculationException
-
testSubscriptionOperations
public void testSubscriptionOperations() throws InvalidCartException- Throws:
InvalidCartException
-
testCreateSubscriptionWithoutAuth
public void testCreateSubscriptionWithoutAuth() throws InvalidCartException- Throws:
InvalidCartException
-
-