Package net.sf.parteg.base.testcasegraph.testsuite

Examples of net.sf.parteg.base.testcasegraph.testsuite.TestSuite


    ampl = AmplFactory.createJAMPL();
    ampl.setSolver(solver);
    ampl.loadModel(amplModel);
   
    m_oTCGHelper = in_oTCGHelper;
    m_oTestSuite = new TestSuite();
    m_colTestGoalsToTestCases = new LinkedHashMap<TestGoalBase, ArrayList<TestCase>>();
    m_colTestCasesToTestGoals = new LinkedHashMap<TestCase, ArrayList<TestGoalBase>>();
  }
View Full Code Here


  }
 
  public TestCaseGenerator(
      TestCaseGraphHelper in_oTCGHelper) {
      m_oTCGHelper = in_oTCGHelper;
      m_oTestSuite = new TestSuite();
      m_colTestGoalsToTestCases = new LinkedHashMap<TestGoalBase, ArrayList<TestCase>>();
      m_colTestCasesToTestGoals = new LinkedHashMap<TestCase, ArrayList<TestGoalBase>>();
    }
View Full Code Here

  {
    // split up the whole test suite according to the number of generated files
    List<TestSuite> colTestSuites =
      splitTestSuiteAccordingToConfiguration(in_oTestSuite);
    for(int i = 0; i < colTestSuites.size(); ++i) {
      TestSuite oTestSuite = colTestSuites.get(i);
      if(i > 0) {
        // set global prefix for class names of generated files
        TemporalConfiguration.setClassNameAdaptation(String.valueOf(i));
      }
   
View Full Code Here

    Iterator<TestCase> oTestCaseIterator = in_oTestSuite.getTestCases().iterator();
    // create new test suites until the original test suite is completely copied
//    while(oTestCaseIterator.hasNext()) {
    for(int i = 0; i < Configuration.getNumberOfFilesToSplitOutputTo(); ++i) {
      int nTestCaseCounter = 1;
      TestSuite oNewTestSuite = new TestSuite();
      while((nTestCaseCounter <= nNumberOfTestCasesPerFile + nCountRest) ||
          i == Configuration.getNumberOfFilesToSplitOutputTo() - 1) {
        ++nTestCaseCounter;
        if(oTestCaseIterator.hasNext()) {
          oNewTestSuite.getTestCases().add(
              oTestCaseIterator.next());
        }
        else {
          break;
        }
      }
      nCountRest = (nNumberOfTestCasesPerFile + nCountRest + 1 - nTestCaseCounter);
      if(!oNewTestSuite.getTestCases().isEmpty())
        colRetValue.add(oNewTestSuite);
    }
   
    return colRetValue;
  }
View Full Code Here

TOP

Related Classes of net.sf.parteg.base.testcasegraph.testsuite.TestSuite

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.