Class OrderHistoryServiceTest

    • Constructor Detail

      • OrderHistoryServiceTest

        public OrderHistoryServiceTest()
    • Method Detail

      • setUp

        public void setUp()
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • tearDown

        public void tearDown()
      • placeOrder

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

        public void testEntries()
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testTimeRange

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

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

        public void testOrderCloning()