Class OfferTest

java.lang.Object
org.springframework.test.context.testng.AbstractTestNGSpringContextTests
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.testng.IHookable, org.testng.ITestNGListener

public class OfferTest extends CommonSetupBaseTest
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.
  • 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

      @Transactional public void testThreePercentOffOffers() throws Exception
      Throws:
      Exception
    • testTwoPercentOffOffers

      @Transactional public void testTwoPercentOffOffers() throws Exception
      Throws:
      Exception
    • testBOGOCombination

      @Transactional public void testBOGOCombination() throws Exception
      Throws:
      Exception
    • testBOGOAmountOffCombination

      @Transactional public void testBOGOAmountOffCombination() throws Exception
      Throws:
      Exception
    • testPercentOffOfferWithScaleGreaterThanTwo

      @Transactional public void testPercentOffOfferWithScaleGreaterThanTwo() throws Exception
      Throws:
      Exception
    • testPercentOffOfferWithItemMinPriceSecondEvaluation

      @Transactional public void testPercentOffOfferWithItemMinPriceSecondEvaluation() throws Exception
      Throws:
      Exception
    • testPercentOffOfferWithItemMinPriceQuantityReduction

      @Transactional public void testPercentOffOfferWithItemMinPriceQuantityReduction() throws Exception
      Throws:
      Exception
    • testOfferUsedForPricing

      @Transactional public void testOfferUsedForPricing() throws Exception
      Throws:
      Exception
    • testOfferNotCombinableItemOffers

      @Transactional public void testOfferNotCombinableItemOffers() throws Exception
      Throws:
      Exception
    • testOfferLowerSalePriceWithNotCombinableOffer

      @Transactional public void testOfferLowerSalePriceWithNotCombinableOffer() throws Exception
      Throws:
      Exception
    • testOfferLowerSalePriceWithNotCombinableOfferAndInformation

      @Transactional public void testOfferLowerSalePriceWithNotCombinableOfferAndInformation() throws Exception
      Throws:
      Exception
    • testOfferLowerSalePriceWithNotCombinableOffer2

      @Transactional public void testOfferLowerSalePriceWithNotCombinableOffer2() throws Exception
      Throws:
      Exception
    • testOfferNotStackableOrderOffers

      @Transactional public void testOfferNotStackableOrderOffers() throws Exception
      Throws:
      Exception
    • testOfferNotCombinableOrderOffers

      @Transactional public void testOfferNotCombinableOrderOffers() throws Exception
      Throws:
      Exception
    • testOfferNotCombinableOrderOffersWithItemOffer

      @Transactional public void testOfferNotCombinableOrderOffersWithItemOffer() throws Exception
      Throws:
      Exception
    • testGlobalOffers

      @Transactional public void testGlobalOffers() throws Exception
      Throws:
      Exception
    • testCustomerAssociatedOffers

      @Transactional public void testCustomerAssociatedOffers() throws Exception
      Throws:
      Exception
    • testCustomerAssociatedOffers2

      @Transactional public void testCustomerAssociatedOffers2() throws Exception
      Throws:
      Exception
    • testFulfillmentGroupOffers

      @Transactional public void testFulfillmentGroupOffers() throws Exception
      Throws:
      Exception
    • testOfferDelete

      @Transactional public void testOfferDelete() throws Exception
      Throws:
      Exception
    • testReadAllOffers

      @Transactional public void testReadAllOffers() throws Exception
      Throws:
      Exception
    • testOfferCodeDao

      @Transactional public void testOfferCodeDao() throws Exception
      Throws:
      Exception
    • testCustomerOffers

      @Transactional public void testCustomerOffers() throws Exception
      Throws:
      Exception