Class GroupOrderEntryPopulatorTest

java.lang.Object
de.hybris.platform.commercefacades.order.converters.populator.GroupOrderEntryPopulatorTest
Direct Known Subclasses:
GroupOrderConsignmentEntryPopulatorTest

@UnitTest public class GroupOrderEntryPopulatorTest extends Object
  • Field Details

    • MIN_PRICE_RANGE_TEST

      public static final BigDecimal MIN_PRICE_RANGE_TEST
    • MAX_PRICE_RANGE_TEST

      public static final BigDecimal MAX_PRICE_RANGE_TEST
    • BASE_PRODUCT_2_PRICE_RANGE_TEST

      public static final String BASE_PRODUCT_2_PRICE_RANGE_TEST
      See Also:
    • TOTAL_PRICE_RANGE_TEST

      public static final BigDecimal TOTAL_PRICE_RANGE_TEST
    • populator

      @InjectMocks protected GroupOrderEntryPopulator populator
  • Constructor Details

    • GroupOrderEntryPopulatorTest

      public GroupOrderEntryPopulatorTest()
  • Method Details

    • setUp

      public void setUp()
    • shouldGroupEntries

      public void shouldGroupEntries()
    • shouldGroupEntriesWithEntryGroups

      public void shouldGroupEntriesWithEntryGroups()
      Given: entry1(multid=true,baseProduct=A,group=standalone,children=[]) entry2(multid=true,baseProduct=A,group=standalone,children=[]) entry3(multid=true,baseProduct=B,group=standalone,children=[]) Result: entry4(fake=true,baseProduct=A,group=standalone,children=[entry1(group=null),entry2(group=null)]) entry5(fake=true,baseProduct=B,group=standalone,children=[entry3(group=null)])
    • validateProductInfo

      protected void validateProductInfo(OrderEntryData parentEntry, OrderEntryData firstEntry)
    • validatePriceRange

      protected void validatePriceRange(OrderEntryData parentEntry)
    • createOrderEntry

      public OrderEntryData createOrderEntry(String productCode, String baseProductCode, BigDecimal price, BigDecimal totalPrice)
    • createEntryGroupData

      protected EntryGroupData createEntryGroupData(OrderEntryData entry, int number)