Class AssertXmlPayloadEquals

  • All Implemented Interfaces:
    com.adaptris.tester.runtime.messages.assertion.Assertion, com.adaptris.tester.runtime.TestComponent

    public class AssertXmlPayloadEquals
    extends com.adaptris.tester.runtime.messages.assertion.PayloadAssertion
    Checks if TestMessage.getPayload() equals PayloadAssertion.getPayload()

    Assertions are used to validate the returned message is expected.

    In the service test configuration this class is aliased as assert-xml-payload-equals 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
      com.adaptris.tester.runtime.messages.assertion.AssertionResult execute​(java.lang.String actual)  
      • Methods inherited from class com.adaptris.tester.runtime.messages.assertion.PayloadAssertion

        execute, expected, getPayload, setPayload, showReturnedMessage
      • Methods inherited from class java.lang.Object

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

      • AssertXmlPayloadEquals

        public AssertXmlPayloadEquals()
      • AssertXmlPayloadEquals

        public AssertXmlPayloadEquals​(java.lang.String payload)
    • Method Detail

      • execute

        public com.adaptris.tester.runtime.messages.assertion.AssertionResult execute​(java.lang.String actual)
                                                                               throws com.adaptris.tester.runtime.ServiceTestException
        Specified by:
        execute in class com.adaptris.tester.runtime.messages.assertion.PayloadAssertion
        Throws:
        com.adaptris.tester.runtime.ServiceTestException