Class GroupOrderEntryPopulatorTest

    • Field Detail

      • MIN_PRICE_RANGE_TEST

        public static final java.math.BigDecimal MIN_PRICE_RANGE_TEST
      • MAX_PRICE_RANGE_TEST

        public static final java.math.BigDecimal MAX_PRICE_RANGE_TEST
      • BASE_PRODUCT_2_PRICE_RANGE_TEST

        public static final java.lang.String BASE_PRODUCT_2_PRICE_RANGE_TEST
        See Also:
        Constant Field Values
      • TOTAL_PRICE_RANGE_TEST

        public static final java.math.BigDecimal TOTAL_PRICE_RANGE_TEST
    • Constructor Detail

      • GroupOrderEntryPopulatorTest

        public GroupOrderEntryPopulatorTest()
    • Method Detail

      • 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)])
      • validatePriceRange

        protected void validatePriceRange​(OrderEntryData parentEntry)
      • createOrderEntry

        public OrderEntryData createOrderEntry​(java.lang.String productCode,
                                               java.lang.String baseProductCode,
                                               java.math.BigDecimal price,
                                               java.math.BigDecimal totalPrice)