Class OfferTest
java.lang.Object
org.springframework.test.context.testng.AbstractTestNGSpringContextTests
org.broadleafcommerce.test.TestNGSiteIntegrationSetup
org.broadleafcommerce.test.CommonSetupBaseTest
org.broadleafcommerce.core.offer.service.OfferTest
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.testng.IHookable,org.testng.ITestNGListener
This integration test class is kept to guarantee backwards
compatibility for Broadleaf offers. The code demonstrated
here employs some deprecated APIs and should therefore not be
used as an example of programatically creating offers.
-
Field Summary
Fields inherited from class org.broadleafcommerce.test.CommonSetupBaseTest
customerAddressService, isoServiceFields inherited from class org.broadleafcommerce.test.TestNGSiteIntegrationSetup
LOGFields inherited from class org.springframework.test.context.testng.AbstractTestNGSpringContextTests
applicationContext, logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateSku1(org.broadleafcommerce.core.catalog.domain.Sku sku) voidcreateSku2(org.broadleafcommerce.core.catalog.domain.Sku sku) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidMethods inherited from class org.broadleafcommerce.test.CommonSetupBaseTest
addTestProduct, addTestProduct, createCountry, createCustomer, createCustomerWithAddress, createCustomerWithAddresses, createCustomerWithBasicOrderAndAddresses, saveCustomerAddressMethods inherited from class org.broadleafcommerce.test.TestNGSiteIntegrationSetup
logStart, logWhenDone, reSetApplicationContextMethods inherited from class org.springframework.test.context.testng.AbstractTestNGSpringContextTests
run, setApplicationContext, springTestContextAfterTestClass, springTestContextAfterTestMethod, springTestContextBeforeTestClass, springTestContextBeforeTestMethod, springTestContextPrepareTestInstance
-
Constructor Details
-
OfferTest
public OfferTest()
-
-
Method Details
-
createSku1
@Rollback(false) public void createSku1(org.broadleafcommerce.core.catalog.domain.Sku sku) -
createSku2
@Rollback(false) public void createSku2(org.broadleafcommerce.core.catalog.domain.Sku sku) -
testThreePercentOffOffers
- Throws:
Exception
-
testTwoPercentOffOffers
- Throws:
Exception
-
testBOGOCombination
- Throws:
Exception
-
testBOGOAmountOffCombination
- Throws:
Exception
-
testPercentOffOfferWithScaleGreaterThanTwo
- Throws:
Exception
-
testPercentOffOfferWithItemMinPriceSecondEvaluation
- Throws:
Exception
-
testPercentOffOfferWithItemMinPriceQuantityReduction
- Throws:
Exception
-
testOfferUsedForPricing
- Throws:
Exception
-
testOfferNotCombinableItemOffers
- Throws:
Exception
-
testOfferLowerSalePriceWithNotCombinableOffer
- Throws:
Exception
-
testOfferLowerSalePriceWithNotCombinableOfferAndInformation
@Transactional public void testOfferLowerSalePriceWithNotCombinableOfferAndInformation() throws Exception- Throws:
Exception
-
testOfferLowerSalePriceWithNotCombinableOffer2
- Throws:
Exception
-
testOfferNotStackableOrderOffers
- Throws:
Exception
-
testOfferNotCombinableOrderOffers
- Throws:
Exception
-
testOfferNotCombinableOrderOffersWithItemOffer
- Throws:
Exception
-
testGlobalOffers
- Throws:
Exception
-
testCustomerAssociatedOffers
- Throws:
Exception
-
testCustomerAssociatedOffers2
- Throws:
Exception
-
testFulfillmentGroupOffers
- Throws:
Exception
-
testOfferDelete
- Throws:
Exception
-
testReadAllOffers
- Throws:
Exception
-
testOfferCodeDao
- Throws:
Exception
-
testCustomerOffers
- Throws:
Exception
-