Package org.faktorips.runtime.test
Class IpsTestCaseJUnitAdapter
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.faktorips.runtime.test.IpsTestCaseJUnitAdapter
- All Implemented Interfaces:
junit.framework.Test
,IpsTestListener
Adapter between JUnit 3/4 test cases and Faktor-IPS test cases.
- Author:
- Joerg Ortmann
-
Constructor Summary
ConstructorsConstructorDescriptionDummy constructor to meet the contract to JUnits test case, this prevents the JUnit warning "has no public constructor TestCase(String name)".IpsTestCaseJUnitAdapter
(IpsTestCaseBase ipsTestCase) -
Method Summary
Modifier and TypeMethodDescriptionvoid
runTest()
Runs the ips test case.void
void
testFinished
(IpsTest2 arg0) void
Dummy test do prevent JUnit "no test found" warning if selecting this test case.void
testStarted
(IpsTest2 test) Methods inherited from class junit.framework.TestCase
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, setName, setUp, tearDown, toString
-
Constructor Details
-
IpsTestCaseJUnitAdapter
-
IpsTestCaseJUnitAdapter
Dummy constructor to meet the contract to JUnits test case, this prevents the JUnit warning "has no public constructor TestCase(String name)". By using this constructor the runTest will suppressed. To run this kind of test cases the constructor IpsTestCaseJUnitAdapter(IpsTestCaseBase ipsTestCase) has to be called.
-
-
Method Details
-
testNothing
public void testNothing()Dummy test do prevent JUnit "no test found" warning if selecting this test case. -
runTest
Runs the ips test case.- Overrides:
runTest
in classjunit.framework.TestCase
- Throws:
Throwable
-
testStarted
- Specified by:
testStarted
in interfaceIpsTestListener
-
testFinished
- Specified by:
testFinished
in interfaceIpsTestListener
-
testFailureOccured
- Specified by:
testFailureOccured
in interfaceIpsTestListener
-