Examples of CurrentStateNodeSelector


Examples of net.sf.parteg.base.testcasegraph.systemstate.CurrentStateNodeSelector

   
    // is it reasonable to continue the search (e.g. because of loops)?
    if(bNormalSearchAllowed && isReasonableToContinueSearch()) {

      // select a state of a transition that has to be evaluated further
      CurrentStateNodeSelector oSelector = new CurrentStateNodeSelector();
      List<TCGNode> oCurrentNodeList = new ArrayList<TCGNode>();
     
      // if last called event is default event then this transition is called immediately after the one to be searched for
      // exception: the current node is an initial node -> then search from other nodes
      // exception: the current node is a connection point -> choose from the connection point (references)
 
      // real node + last called is default -> same node
      // real node + last called is not default -> choose
      // initial node -> choose
     
      if((!m_oTestCaseRunnerState.isMostRecentCalledEventDefaultEvent() &&
          in_oNode instanceof TCGRealNode) ||
          (TCGNodeHelperClass.isTopmostInitialNode(in_oNode))) {
        oSelector.selectNodeToBeProcessed(
          m_oTestCaseRunnerState.getRuntimeState(),
          m_oTestCaseRunnerState.getConditionsToBeSatisfied(),
          m_oTCGHelper, oCurrentNodeList);
      }
      else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.