Class TestRouteInput


  • public final class TestRouteInput
    extends Object
    Input for testing route.
    • Constructor Detail

      • TestRouteInput

        public TestRouteInput()
    • Method Detail

      • message

        public RoutingMessage message()
        Get the message property: Routing message.
        Returns:
        the message value.
      • withMessage

        public TestRouteInput withMessage​(RoutingMessage message)
        Set the message property: Routing message.
        Parameters:
        message - the message value to set.
        Returns:
        the TestRouteInput object itself.
      • route

        public RouteProperties route()
        Get the route property: Route properties.
        Returns:
        the route value.
      • withRoute

        public TestRouteInput withRoute​(RouteProperties route)
        Set the route property: Route properties.
        Parameters:
        route - the route value to set.
        Returns:
        the TestRouteInput object itself.
      • twin

        public RoutingTwin twin()
        Get the twin property: Routing Twin Reference.
        Returns:
        the twin value.
      • withTwin

        public TestRouteInput withTwin​(RoutingTwin twin)
        Set the twin property: Routing Twin Reference.
        Parameters:
        twin - the twin value to set.
        Returns:
        the TestRouteInput object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.