Class NoSplittingStrategyTest

java.lang.Object
de.hybris.platform.warehousing.sourcing.strategy.impl.NoSplittingStrategyTest

@UnitTest public class NoSplittingStrategyTest extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Given an order with 2 entries:
    entry 1 : {quantity: 3, product: cheese}
    entry 2 : {quantity: 4, product: milk}
    Result:
    the source should complete using the first location (Montreal)
    {Warehouse: Montreal, Availability : {[cheese,4], [milk,3]}
    {Warehouse: Brossard, Availability : {[cheese,4], [milk,3]}
    Assert:
    It verifies the number of SourcingResult
    It checks if the source is completed.
    void
    Given an order with 2 entries:
    entry 1 : {quantity: 3, product: cheese}
    entry 2 : {quantity: 4, product: milk}
    Result:
    the source should complete using the second location(Brossard)
    {Warehouse: Montreal, Availability : {[cheese,0], [milk,0]}
    {Warehouse: Brossard, Availability : {[cheese,5], [milk,5]}
    Assert:
    It verifies the number of SourcingResult
    It checks if the source is completed.
    void
    Given an order with 2 entries:
    entry 1 : {quantity: 3, product: cheese}
    entry 2 : {quantity: 4, product: milk}
    Result:
    the source should not complete.
    void
     
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NoSplittingStrategyTest

      public NoSplittingStrategyTest()
  • Method Details

    • setUp

      public void setUp() throws Exception
      Throws:
      Exception
    • noSplittingSourcingNoStock

      public void noSplittingSourcingNoStock()
      Given an order with 2 entries:
      entry 1 : {quantity: 3, product: cheese}
      entry 2 : {quantity: 4, product: milk}
      Result:
      the source should not complete. There is no stock in the locations
      {Warehouse: Montreal, Availability : {[cheese,0], [milk,0]}
      {Warehouse: Brossard, Availability : {[cheese,0], [milk,0]}
      Assert:
      It verifies the number of SourcingResult
      It checks if the source is completed.
    • noSplittingSourceFirstLocation

      public void noSplittingSourceFirstLocation()
      Given an order with 2 entries:
      entry 1 : {quantity: 3, product: cheese}
      entry 2 : {quantity: 4, product: milk}
      Result:
      the source should complete using the first location (Montreal)
      {Warehouse: Montreal, Availability : {[cheese,4], [milk,3]}
      {Warehouse: Brossard, Availability : {[cheese,4], [milk,3]}
      Assert:
      It verifies the number of SourcingResult
      It checks if the source is completed.
    • noSplittingSourceSecondLocation

      public void noSplittingSourceSecondLocation()
      Given an order with 2 entries:
      entry 1 : {quantity: 3, product: cheese}
      entry 2 : {quantity: 4, product: milk}
      Result:
      the source should complete using the second location(Brossard)
      {Warehouse: Montreal, Availability : {[cheese,0], [milk,0]}
      {Warehouse: Brossard, Availability : {[cheese,5], [milk,5]}
      Assert:
      It verifies the number of SourcingResult
      It checks if the source is completed.
    • shouldFail_nullContext

      public void shouldFail_nullContext()