Class BaseSourcingIntegrationTest

    • Constructor Detail

      • BaseSourcingIntegrationTest

        public BaseSourcingIntegrationTest()
    • Method Detail

      • setupShopper

        public void setupShopper()
      • setupBaseStore

        public void setupBaseStore()
      • resetFactors

        public void resetFactors()
      • assertSourcingResultContents

        protected void assertSourcingResultContents​(SourcingResults results,
                                                    WarehouseModel expectedWarehouse,
                                                    java.util.Map<ProductModel,​java.lang.Long> expectedAllocation)
        Assert that the sourcing result selected the correct warehouse and sourced the correct quantity.
        Parameters:
        results -
        expectedWarehouse -
        expectedAllocation -
      • setSourcingFactors

        protected void setSourcingFactors​(BaseStoreModel baseStore,
                                          int allocation,
                                          int distance,
                                          int priority,
                                          int score)
        Sets the sourcing factors to use.
        Parameters:
        baseStore -
        allocation -
        distance -
        priority -
      • refreshOrder

        protected OrderModel refreshOrder​(OrderModel order)
        refresh order.
        Parameters:
        order -
        Returns: