Package net.sf.parteg.base.testcasegraph.systemstate

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


    m_oRunner.getRuntimeState().setActiveNode(m_oNode);

    // add stateconfiguration to history
    if(m_oNode instanceof TCGRealNode) {
      m_oRunner.getStateConfigurationHistory().add(
          new StateConfiguration(m_oRunner.getRuntimeState(),
              m_oRunner.getConditionsToBeSatisfied()));
    }
  }
View Full Code Here


    // the direct successor may be the same state - for self transitions
   
    if(m_oTestCaseRunnerState.getStateConfigurationHistory().size() < 3)
      return false;
    // only compare to the newest added state
    StateConfiguration oNewStateConfiguration =
      m_oTestCaseRunnerState.getStateConfigurationHistory().get(
          m_oTestCaseRunnerState.getStateConfigurationHistory().size() - 1);

    for(int n = 1; n < m_oTestCaseRunnerState.getStateConfigurationHistory().size() - 1; ++n) {
      StateConfiguration oCurrentStateConfiguration =
        m_oTestCaseRunnerState.getStateConfigurationHistory().get(n);
      // runtime states equal?
      if(oCurrentStateConfiguration.isSubConfigurationOf(oNewStateConfiguration)) {
        return true;
      }
    }
    // found no matching state in history
    return false;
View Full Code Here

TOP

Related Classes of net.sf.parteg.base.testcasegraph.systemstate.StateConfiguration

Copyright © 2018 www.massapicom. 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.