com.ibm.broker.config.proxy

Class TestData

  • java.lang.Object
    • com.ibm.broker.config.proxy.TestData
  • Direct Known Subclasses:
    InputTestData


    public class TestData
    extends java.lang.Object

    The TestData class represents a single set of message data that has been recorded by the integration server when test record mode is enabled.

    com.ibm.broker.config.proxy.TestData

    Responsibilities Represents a single set of test data.
    Internal Collaborators None
     
     Change Activity:
     -------- ----------- -------------   ------------------------------------
     Reason:  Date:       Originator:     Comments:
     -------- ----------- -------------   ------------------------------------
     31175    2014-02-28  PLN             v10 Release
     
     
    • Constructor Summary

      Constructors 
      Constructor and Description
      TestData() 
      TestData(java.lang.String name, java.lang.String uuid)
      Create a TestData Object
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getEnvironment()
      Get the serialised environment as an XML string
      org.w3c.dom.Node getEnvironmentNode()
      Get the serialised environment as a DOM node
      java.lang.String getExceptionList()
      Get the serialised exception list as an XML string
      org.w3c.dom.Node getExceptionListNode()
      Get the serialised exception list as a DOM node
      java.lang.String getLocalEnvironment()
      Get the serialised local environment as an XML string
      org.w3c.dom.Node getLocalEnvironmentNode()
      Get the serialised local environment as a DOM node
      java.lang.String getMessage()
      Get the serialised message as an XML string
      org.w3c.dom.Node getMessageNode()
      Get the serialised message as a DOM node
      java.lang.String getName()
      Get the name for the TestData
      java.lang.String getStatistics()
      Get the serialised statistics as an XML string
      org.w3c.dom.Node getStatisticsNode()
      Get the serialised statistics as a DOM node
      static java.util.List<TestData> getTestDataFromXML(java.lang.String xml)
      Get a list of TestData objects from an xml string
      java.lang.String getUuid()
      Get the uuid for the TestData
      boolean isInputData() 
      void setEnvironment(org.w3c.dom.Node environment)
      Sets the serialised environment for this test data
      void setExceptionList(org.w3c.dom.Node exceptionList)
      Sets the serialised exception list for this test data
      void setLocalEnvironment(org.w3c.dom.Node localEnvironment)
      Sets the serialised local environment for this test data
      void setMessage(org.w3c.dom.Node message)
      Sets the serialised message for this test data
      void setName(java.lang.String name)
      Set the name for the TestData
      void setStatistics(org.w3c.dom.Node statistics)
      Sets the serialised statistics for this test data
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • TestData

        public TestData()
      • TestData

        public TestData(java.lang.String name,
                        java.lang.String uuid)
        Create a TestData Object
        Parameters:
        name -
        uuid -
    • Method Detail

      • getUuid

        public java.lang.String getUuid()
        Get the uuid for the TestData
        Returns:
        uuid
      • getName

        public java.lang.String getName()
        Get the name for the TestData
        Returns:
        name
      • setName

        public void setName(java.lang.String name)
        Set the name for the TestData
      • setMessage

        public void setMessage(org.w3c.dom.Node message)
        Sets the serialised message for this test data
        Parameters:
        message - - A DOM node of the message
      • getMessage

        public java.lang.String getMessage()
        Get the serialised message as an XML string
        Returns:
        the serialised message as xml
      • getMessageNode

        public org.w3c.dom.Node getMessageNode()
        Get the serialised message as a DOM node
        Returns:
        the serialised message as a DOM node
      • setLocalEnvironment

        public void setLocalEnvironment(org.w3c.dom.Node localEnvironment)
        Sets the serialised local environment for this test data
        Parameters:
        localEnvironment - - A DOM node of the local environment
      • getLocalEnvironment

        public java.lang.String getLocalEnvironment()
        Get the serialised local environment as an XML string
        Returns:
        the serialised local environment as xml
      • getLocalEnvironmentNode

        public org.w3c.dom.Node getLocalEnvironmentNode()
        Get the serialised local environment as a DOM node
        Returns:
        the serialised local environment as a DOM node
      • setEnvironment

        public void setEnvironment(org.w3c.dom.Node environment)
        Sets the serialised environment for this test data
        Parameters:
        environment - - A DOM node of the environment
      • getEnvironment

        public java.lang.String getEnvironment()
        Get the serialised environment as an XML string
        Returns:
        the serialised environment as xml
      • getEnvironmentNode

        public org.w3c.dom.Node getEnvironmentNode()
        Get the serialised environment as a DOM node
        Returns:
        the serialised environment as a DOM node
      • setExceptionList

        public void setExceptionList(org.w3c.dom.Node exceptionList)
        Sets the serialised exception list for this test data
        Parameters:
        exceptionList - - A DOM node of the exception list
      • getExceptionList

        public java.lang.String getExceptionList()
        Get the serialised exception list as an XML string
        Returns:
        the serialised exception list as xml
      • getExceptionListNode

        public org.w3c.dom.Node getExceptionListNode()
        Get the serialised exception list as a DOM node
        Returns:
        the serialised exception list as a DOM node
      • setStatistics

        public void setStatistics(org.w3c.dom.Node statistics)
        Sets the serialised statistics for this test data
        Parameters:
        statistics - - A DOM node of the statistics
      • getStatistics

        public java.lang.String getStatistics()
        Get the serialised statistics as an XML string
        Returns:
        the serialised statistics as xml
      • getStatisticsNode

        public org.w3c.dom.Node getStatisticsNode()
        Get the serialised statistics as a DOM node
        Returns:
        the serialised statistics as a DOM node
      • getTestDataFromXML

        public static java.util.List<TestData> getTestDataFromXML(java.lang.String xml)
        Get a list of TestData objects from an xml string
        Parameters:
        xml - - The xml string containing one or more 'testData' tags
        Returns:
        List
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • isInputData

        public boolean isInputData()