Class BaseSourcingIntegrationTest

All Implemented Interfaces:
JaloSessionHolder
Direct Known Subclasses:
DefaultSourcingBanDaoTest, ManualDeclineEndToEndIntegrationTest, PickUpSourcingEndToEndIntegrationTest, ShippingSourcingEndToEndIntegrationTest, SourceDeliveryHugeEntriesIntegrationTest, SourceDeliveryMultiEntriesIntegrationTest, SourceDeliverySingleEntryIntegrationTest, SourcePickupSingleEntryIntegrationTest

public class BaseSourcingIntegrationTest extends BaseWarehousingIntegrationTest
  • Field Details

  • Constructor Details

    • BaseSourcingIntegrationTest

      public BaseSourcingIntegrationTest()
  • Method Details

    • setupShopper

      public void setupShopper()
    • setupBaseStore

      public void setupBaseStore()
    • resetFactors

      public void resetFactors()
    • assertSourcingResultContents

      protected void assertSourcingResultContents(SourcingResults results, WarehouseModel expectedWarehouse, Map<ProductModel,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: