psdi.unittest

Class Action

    • Field Detail

      • refetch

        protected boolean refetch
      • txend

        protected boolean txend
      • responseId

        protected java.lang.String responseId
    • Constructor Detail

      • Action

        public Action(MboRemote mbo,
                      org.jdom2.Element actionElem,
                      java.util.Map context,
                      TestDataSource testDataSource)
               throws TestSetupException
        Parameters:
        mbo - Mbo on which to act on
        actionElem - the xml element that reresents the action
        context - the execution context for the test case
        testDataSource - the TestDataSource handle to load TestData's
        Throws:
        TestSetupException
    • Method Detail

      • loadMbo

        protected MboRemote loadMbo(MboRemote mbo)
                             throws java.rmi.RemoteException,
                                    MXException
        Parameters:
        mbo - the Mbo to be reloaded
        Returns:
        the reloaded Mbo
        Throws:
        java.rmi.RemoteException
        MXException
      • isRefetch

        public boolean isRefetch()
      • isTxEnd

        public boolean isTxEnd()
      • generateRelationName

        protected java.lang.String generateRelationName()
      • getResponseId

        public java.lang.String getResponseId()
        Returns:
        the response id for the action
      • hasResponse

        protected boolean hasResponse()
        Returns:
        true is the action has a response and false otherwise. For example a method action would return true if the method return type is not void.
      • isIgnoreFault

        public boolean isIgnoreFault()
        Returns:
        true is the fault generated by this action should be ignored by the processor. This allows the unit test case execution to continue even though an action has generated and error condition.
      • doAction

        public abstract java.lang.Object doAction()
                                           throws java.lang.Exception
        Method that would contain the action implementation.
        Returns:
        the result of the action. For example if the action is a method call this would be the response from the method call.
        Throws:
        java.lang.Exception
      • getMbo

        public MboRemote getMbo()
                         throws java.lang.Exception
        Throws:
        java.lang.Exception