junitx.ddtunit
Interface IDDTTestCase

All Known Implementing Classes:
DDTTestCase

public interface IDDTTestCase


Method Summary
 int countMethodTests()
          Count number of test datasets provided for method methodName.
 String getName()
           
 String getTestName()
           
 junit.framework.TestResult run()
          Run complete selected testmethod by generating a separate result und return this after execution.
 void run(junit.framework.TestResult result)
          Run complete selected testmethod by generating a separate result und return this after execution.
 void runBare()
          Run a bare method cycle as defined in JUnit.
 String runInfo()
           
 void setTestName(String testName)
           
 

Method Detail

run

junit.framework.TestResult run()
Run complete selected testmethod by generating a separate result und return this after execution. This contains all notification hooks to TestListener classes like TestRunner.

Returns:
result of executed test

run

void run(junit.framework.TestResult result)
Run complete selected testmethod by generating a separate result und return this after execution. This contains all notification hooks to TestListener classes like TestRunner.

Parameters:
result - object generated externally, by a testrunner e.g..

runBare

void runBare()
             throws Throwable
Run a bare method cycle as defined in JUnit. Here the testdata initialization is performed. Because every testmethod should be run under its own fixture the execution of setUp and tearDown is inside of a subroutine. These methods will be executed inside of around every test representation of xml testdata definition.

Throws:
Throwable - that might come up during testmethod execution.

countMethodTests

int countMethodTests()
Count number of test datasets provided for method methodName.
If dataset for this method is null, 1 will be returned (a standard JUnit method)

Returns:
Count of tests under method methodName

runInfo

String runInfo()
Returns:
Information about actual run test

getTestName

String getTestName()
Returns:
Returns the testName.

setTestName

void setTestName(String testName)
Parameters:
testName - The testName to set.

getName

String getName()


Copyright © 2004-2011. All Rights Reserved.