Package tigase.test

Class TestEmpty

    • Field Detail

      • stanza_variables

        protected static final Map<String,​String> stanza_variables
        Stanza variables are gathered from stanzas received from the server. In the 'expect' statement you mark location of such data with @{var-name} it is stored then in this Map and all occurrences of @{var-name} in 'send' and subsequent 'expect' stanzas gets replaced with information received from the server.
    • Constructor Detail

      • TestEmpty

        public TestEmpty​(String[] base_xmlns,
                         String[] implemented,
                         String[] depends,
                         String[] optional)
        Creates a new TestEmpty instance.
        Parameters:
        base_xmlns -
        implemented -
        depends -
        optional -
    • Method Detail

      • addInput

        public void addInput​(String input)
        Describe getHistory method here.
        Parameters:
        input -
      • addOutput

        public void addOutput​(String output)
        Method description
        Parameters:
        output -
      • baseXMLNS

        public String[] baseXMLNS()
        Describe baseXMLNS method here.
        Specified by:
        baseXMLNS in interface TestIfc
        Returns:
        a String[] value
      • debug

        public void debug​(String msg)
        Method description
        Parameters:
        msg -
      • depends

        public String[] depends()
        Describe depends method here.
        Specified by:
        depends in interface TestIfc
        Returns:
        a String[] value
      • getLastResult

        public tigase.xml.Element getLastResult()
        Describe getLastResult method here.
        Specified by:
        getLastResult in interface TestIfc
        Returns:
        an Element value
      • getName

        public String getName()
        Method description
        Specified by:
        getName in interface TestIfc
        Returns:
      • getResultCode

        public ResultCode getResultCode()
        Describe getResultCode method here.
        Specified by:
        getResultCode in interface TestIfc
        Returns:
        an int value
      • getResultMessage

        public String getResultMessage()
        Describe getResultMessage method here.
        Specified by:
        getResultMessage in interface TestIfc
        Returns:
        a String value
      • implemented

        public String[] implemented()
        Describe implemented method here.
        Specified by:
        implemented in interface TestIfc
        Returns:
        a String[] value
      • init

        public void init​(Params params,
                         Map<String,​String> vars)
        Describe init method here.
        Specified by:
        init in interface TestIfc
        Parameters:
        params - a Params value
        vars -
      • optional

        public String[] optional()
        Describe optional method here.
        Specified by:
        optional in interface TestIfc
        Returns:
        a String[] value
      • run

        public boolean run()
        Describe run method here.
        Specified by:
        run in interface TestIfc
        Returns:
        a boolean value
      • setName

        public void setName​(String testName)
        Method description
        Specified by:
        setName in interface TestIfc
        Parameters:
        testName -