Class AssertNextServiceId

  • All Implemented Interfaces:
    Assertion, TestComponent

    public class AssertNextServiceId
    extends java.lang.Object
    implements Assertion
    Checks the value of TestMessage.getNextServiceId() equals getValue().

    In the service test configuration this class is aliased as assert-next-service-id which is the preferred alternative to the fully qualified classname when building your configuration.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      AssertionResult execute​(TestMessage actual, ServiceTestConfig config)
      Execute assertion against test message.
      java.lang.String expected()
      Returns expected result of assertion.
      java.lang.String getValue()
      Get value to check next service id against.
      void setValue​(java.lang.String value)
      Set value to check next service id against.
      boolean showReturnedMessage()
      Controls whether returned message should be included in error text.
      • Methods inherited from class java.lang.Object

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

      • AssertNextServiceId

        public AssertNextServiceId()
    • Method Detail

      • expected

        public java.lang.String expected()
        Description copied from interface: Assertion
        Returns expected result of assertion. Used in error reporting.
        Specified by:
        expected in interface Assertion
        Returns:
        Expected result of assertion.
      • showReturnedMessage

        public boolean showReturnedMessage()
        Description copied from interface: Assertion
        Controls whether returned message should be included in error text.
        Specified by:
        showReturnedMessage in interface Assertion
        Returns:
        Whether returned message should be included in error text.
      • setValue

        public void setValue​(java.lang.String value)
        Set value to check next service id against.
        Parameters:
        value - Value to check next service id against.
      • getValue

        public java.lang.String getValue()
        Get value to check next service id against.
        Returns:
        Value to check next service id against.