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
public class IpsTestCaseJUnitAdapter extends junit.framework.TestCase implements IpsTestListener
Ips test case adapter. Adapter between JUnit test cases and ips test cases.- Author:
- Joerg Ortmann
-
-
Constructor Summary
Constructors Constructor Description IpsTestCaseJUnitAdapter(java.lang.String name)Dummy 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrunTest()Runs the ips test case.voidtestFailureOccured(IpsTestFailure f)voidtestFinished(IpsTest2 arg0)voidtestNothing()Dummy test do prevent JUnit "no test found" warning if selecting this test case.voidtestStarted(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 Detail
-
IpsTestCaseJUnitAdapter
public IpsTestCaseJUnitAdapter(IpsTestCaseBase ipsTestCase)
-
IpsTestCaseJUnitAdapter
public IpsTestCaseJUnitAdapter(java.lang.String name)
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 Detail
-
testNothing
public void testNothing()
Dummy test do prevent JUnit "no test found" warning if selecting this test case.
-
runTest
public void runTest() throws java.lang.ThrowableRuns the ips test case.- Overrides:
runTestin classjunit.framework.TestCase- Throws:
java.lang.Throwable
-
testStarted
public void testStarted(IpsTest2 test)
- Specified by:
testStartedin interfaceIpsTestListener
-
testFinished
public void testFinished(IpsTest2 arg0)
- Specified by:
testFinishedin interfaceIpsTestListener
-
testFailureOccured
public void testFailureOccured(IpsTestFailure f)
- Specified by:
testFailureOccuredin interfaceIpsTestListener
-
-