Class ShippingSourcingEndToEndIntegrationTest

All Implemented Interfaces:
JaloSessionHolder

@IntegrationTest public class ShippingSourcingEndToEndIntegrationTest extends BaseSourcingIntegrationTest
  • Field Details

  • Constructor Details

    • ShippingSourcingEndToEndIntegrationTest

      public ShippingSourcingEndToEndIntegrationTest()
  • Method Details

    • setup

      public void setup()
    • shouldSource1ProductFrom1LocationAndDecline

      public void shouldSource1ProductFrom1LocationAndDecline()
      Given an shipping order with 1 entries:
      entry 1 : {quantity: 3, product: camera}

      Result:
      It should source complete from 1 location, Montreal
      Decline should works well

    • shouldSource1ProductFrom1Location_MultiStockLevels_WithASN

      public void shouldSource1ProductFrom1Location_MultiStockLevels_WithASN()
    • shouldSource1ProductFrom1Location_ManyStockLevels_Decline

      public void shouldSource1ProductFrom1Location_ManyStockLevels_Decline()
    • shouldSource2ProductFrom1Location

      public void shouldSource2ProductFrom1Location()
      Given an shipping order with 2 entries:
      entry 1 : {quantity: 3, product: camera}
      entry 2 : {quantity: 4, product: memoryCard}

      Result:
      It should source complete from 1 location, Montreal

    • shouldSource2ProductFrom2Location

      public void shouldSource2ProductFrom2Location()
      ======= assertTrue( allocationResult.stream().allMatch(result -> result.getStockLevel().getWarehouse().getCode().equals(CODE_MONTREAL))); assertTrue(allocationResult.stream().anyMatch(result -> result.getQuantity() == 3)); assertTrue(allocationResult.stream().anyMatch(result -> result.getQuantity() == 4)); } /** Given an shipping order with 2 entries:
      entry 1 : {quantity: 3, product: camera}
      entry 2 : {quantity: 4, product: memoryCard}

      Result:
      It should source complete from 2 locations

    • shouldSource1ProductFrom2Location

      public void shouldSource1ProductFrom2Location()
      >>>>>>> develop Given an shipping order with 1 entries:
      entry 1 : {quantity: 3, product: camera}

      Result:
      It should source complete from 2 locations

    • shouldSource1ProductFrom1LocationWithoutPos

      public void shouldSource1ProductFrom1LocationWithoutPos()
      Given an shipping order with 1 entries:
      entry 1 : {quantity: 3, product: camera}

      Result:
      It should source complete from warehouse which doesn't belong to POS

    • shouldSource1Fail_ForceOutOfStock

      public void shouldSource1Fail_ForceOutOfStock()
      Given an shipping order with 1 entries:
      entry 1 : {quantity: 3, product: camera}

      Result:
      verify force out of stock

    • shouldSourceSuccess_ForceInOfStock

      public void shouldSourceSuccess_ForceInOfStock()
      Given an shipping order with 1 entries:
      entry 1 : {quantity: 3, product: camera}

      Result:
      verify force in of stock

    • shouldGetStocksByDate_nullFirst_ascending_allocation

      public void shouldGetStocksByDate_nullFirst_ascending_allocation() throws InterruptedException
      Throws:
      InterruptedException