org.baselinetest
Class TestSuite

java.lang.Object
  extended by org.baselinetest.TestSuite

public class TestSuite
extends java.lang.Object

Need to execute init and cleanup in reverse order of each other. Create the appropriate connection methods to junit so that we can control the execution order of the test cases; this can be tricky.

Author:
jwan

Constructor Summary
TestSuite(TestContext testContext, java.io.File suiteDir, java.io.File resultsDir, java.util.Set<java.lang.String> validContexts, boolean skipped)
           
TestSuite(TestContext testContext, java.io.File suiteDir, java.io.File resultsDir, java.util.Set<java.lang.String> validContexts, boolean skipped, java.lang.String encoding)
           
 
Method Summary
 void addTestCase(TestCase testCase)
           
 BaselineWriter getBaselineWriter()
          Get the BaselineWriter.
 TestCase getCurrentTestCase()
          Get the current TestCase.
 java.io.File getResultsDir()
          Gets the directory for the test results for the test suite.
 ArgumentCollection getSuiteArguments()
          Get the arguments for the TestSuite.
 java.io.File getSuiteDir()
          Gets the directory for the TestSuite.
 TestSuiteResults getSuiteResults()
           
 TestContext getTestContext()
          Get the TestContext.
 TestLogger getTestLogger()
          Get the TestLogger for this TestSuite.
 TestState getTestState()
          Get the current TestState.
 boolean isSkipped()
          Gets the skipped flag.
 void setSuiteResults(TestSuiteResults suiteResults)
           
 boolean supportsContext(java.lang.String contextName)
          Check whether the given context is supported by this TestSuite.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestSuite

public TestSuite(TestContext testContext,
                 java.io.File suiteDir,
                 java.io.File resultsDir,
                 java.util.Set<java.lang.String> validContexts,
                 boolean skipped,
                 java.lang.String encoding)

TestSuite

public TestSuite(TestContext testContext,
                 java.io.File suiteDir,
                 java.io.File resultsDir,
                 java.util.Set<java.lang.String> validContexts,
                 boolean skipped)
Method Detail

addTestCase

public void addTestCase(TestCase testCase)

getSuiteArguments

public ArgumentCollection getSuiteArguments()
Get the arguments for the TestSuite.

Returns:
an ArgumentCollection.

getBaselineWriter

public BaselineWriter getBaselineWriter()
Get the BaselineWriter.

Returns:
the BaselineWriter.

getTestLogger

public TestLogger getTestLogger()
Get the TestLogger for this TestSuite.

Returns:
the TestLogger.

getResultsDir

public java.io.File getResultsDir()
Gets the directory for the test results for the test suite.

Returns:
the results directory.

getSuiteDir

public java.io.File getSuiteDir()
Gets the directory for the TestSuite.

Returns:
the suite directory.

isSkipped

public boolean isSkipped()
Gets the skipped flag.

Returns:
whether the TestSuite should be skipped.

getTestContext

public TestContext getTestContext()
Get the TestContext.

Returns:
the TestContext.

getTestState

public TestState getTestState()
Get the current TestState.

Returns:
the TestState.

getCurrentTestCase

public TestCase getCurrentTestCase()
Get the current TestCase.

Returns:
the current TestCase.

supportsContext

public boolean supportsContext(java.lang.String contextName)
Check whether the given context is supported by this TestSuite.

Parameters:
contextName - the name of the context to check.
Returns:
true if the context is explicitly supported. False if it is not.

getSuiteResults

public TestSuiteResults getSuiteResults()

setSuiteResults

public void setSuiteResults(TestSuiteResults suiteResults)


Copyright © 2005-2009 Baseline Test. All Rights Reserved.