Class DeliveryModeServiceTest

    • Constructor Detail

      • DeliveryModeServiceTest

        public DeliveryModeServiceTest()
    • Method Detail

      • setUp

        public void setUp()
                   throws java.lang.Exception
        Creates the core data, and necessary data for delivery modes.
        Throws:
        java.lang.Exception
      • testGetDeliveryMode

        public void testGetDeliveryMode()
        Tries to search for the delivery mode with code:
        • successful with "courier",
        • caught UnknownIdentifierException with "No_Such_DeliveryMode",
        • found all delivery modes, whose size is 3.
      • testGetSupportedDeliveryModes

        public void testGetSupportedDeliveryModes()
        Tries to search for the supported delivery modes with the payment mode:
        • found payment mode with "creditcard",
        • found all supported delivery modes for this payment mode, which is 5