Package org.faktorips.runtime.test
Class IpsTestSuiteJUnitAdapter
java.lang.Object
junit.framework.TestSuite
org.faktorips.runtime.test.IpsTestSuiteJUnitAdapter
- All Implemented Interfaces:
junit.framework.Test
public class IpsTestSuiteJUnitAdapter
extends junit.framework.TestSuite
Adapter between JUnit 3/4 test suites and Faktor-IPS test suites.
Code example to show how the adapter can be integrated:
import org.faktorips.runtime.test.IpsTestSuiteJUnitAdapter;
import junit.framework.Test;
public class HomeInsuranceJUnitTest extends IpsTestSuiteJUnitAdapter {
public static Test suite() {
IRuntimeRepository repository = [...];
return createJUnitTest(repository.getIpsTest(""));
}
}
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic junit.framework.TestcreateJUnitTest(IpsTest2 ipsTest) Creates an adapter test for the given ips test.voidDummy test method to avoid a warning when running all JUnit tests in this project.Methods inherited from class junit.framework.TestSuite
addTest, addTestSuite, countTestCases, createTest, getName, getTestConstructor, run, runTest, setName, testAt, testCount, tests, toString, warning
-
Constructor Details
-
IpsTestSuiteJUnitAdapter
public IpsTestSuiteJUnitAdapter() -
IpsTestSuiteJUnitAdapter
-
IpsTestSuiteJUnitAdapter
-
-
Method Details
-
testDummy
public void testDummy()Dummy test method to avoid a warning when running all JUnit tests in this project. Without this method, Eclpise's JUnit support would create a warning that his suite hasn't got any tests. -
createJUnitTest
Creates an adapter test for the given ips test.
-