Class OrderHistoryServiceTest

All Implemented Interfaces:
JaloSessionHolder

public class OrderHistoryServiceTest extends ServicelayerTransactionalTest
  • Constructor Details

    • OrderHistoryServiceTest

      public OrderHistoryServiceTest()
  • Method Details

    • setUp

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

      public void tearDown()
    • placeOrder

      protected OrderModel placeOrder(UserModel user) throws Exception
      tests creation of OrderHistoryEntry and fetching them as well.
      Throws:
      Exception
    • testEntries

      public void testEntries() throws Exception
      Throws:
      Exception
    • testTimeRange

      public void testTimeRange() throws Exception
      Tests fetching OrderHistoryEntries (or descriptions only) of an order for the given time range.
      Throws:
      Exception
    • testOrderOwner

      public void testOrderOwner() throws Exception
      Tests fetching OrderHistoryEntries of all Orders of the same customer
      Throws:
      Exception
    • testOrderCloning

      public void testOrderCloning()
    • createEntry

      protected OrderHistoryEntryModel createEntry(OrderModel order, boolean save)
    • createEntry

      protected OrderHistoryEntryModel createEntry(OrderModel order, boolean save, String result)