Package tigase.test

Class TestAbstract

    • Field Detail

      • CHALLENGE_PATH

        protected static final String[] CHALLENGE_PATH
        Field description
      • FIELD_VALUE_PATH

        protected static final String[] FIELD_VALUE_PATH
        Field description
      • IQ_QUERY_VERSION_PATH

        protected static final String[] IQ_QUERY_VERSION_PATH
        Field description
      • IQ_QUERY_PATH

        protected static final String[] IQ_QUERY_PATH
        Field description
      • IQ_QUERY_OS_PATH

        protected static final String[] IQ_QUERY_OS_PATH
        Field description
      • IQ_QUERY_NAME_PATH

        protected static final String[] IQ_QUERY_NAME_PATH
        Field description
      • IQ_COMMAND_X_PATH

        protected static final String[] IQ_COMMAND_X_PATH
        Field description
      • STREAM_MECHANISMS_PATH

        protected static final String[] STREAM_MECHANISMS_PATH
        Field description
      • exception

        protected Exception exception
        Field description
      • params

        protected Params params
        Field description
      • reply

        protected tigase.xml.Element reply
        Field description
      • timeoutOk

        protected boolean timeoutOk
        Field description
      • resultCode

        protected ResultCode resultCode
        Field description
      • disconnectOk

        protected boolean disconnectOk
        Field description
    • Constructor Detail

      • TestAbstract

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

      • getElementData

        public abstract String getElementData​(String element)
                                       throws Exception
        Method description
        Parameters:
        element -
        Returns:
        Throws:
        Exception
      • getRespElementAttributes

        public abstract Attribute[] getRespElementAttributes​(String element)
                                                      throws Exception
        Method description
        Parameters:
        element -
        Returns:
        Throws:
        Exception
      • getRespElementNames

        public abstract String[] getRespElementNames​(String element)
                                              throws Exception
        Method description
        Parameters:
        element -
        Returns:
        Throws:
        Exception
      • getRespOptionalNames

        public abstract String[] getRespOptionalNames​(String element)
                                               throws Exception
        Method description
        Parameters:
        element -
        Returns:
        Throws:
        Exception
      • nextElementName

        public abstract String nextElementName​(tigase.xml.Element reply)
                                        throws Exception
        Method description
        Parameters:
        reply -
        Returns:
        Throws:
        Exception
      • substituteVars

        public static String substituteVars​(String data,
                                            String[] vars,
                                            String[] vals)
        Method description
        Parameters:
        data -
        vars -
        vals -
        Returns:
      • hasAttributes

        public boolean hasAttributes​(tigase.xml.Element elem,
                                     Attribute[] attrs)
        Method description
        Parameters:
        elem -
        attrs -
        Returns:
      • release

        public void release()
        Method description
      • replyElement

        public void replyElement​(tigase.xml.Element reply)
                          throws Exception
        Method description
        Parameters:
        reply -
        Throws:
        Exception
      • run

        public boolean run()
        Describe run method here.
        Specified by:
        run in interface TestIfc
        Overrides:
        run in class TestEmpty
        Returns:
        a boolean value