01: package net.sf.mockcreator;
02:
03: import junit.framework.TestResult;
04:
05: public class TestCase extends junit.framework.TestCase {
06: public TestCase(String name) {
07: super (name);
08: }
09:
10: public TestCase() {
11: super ("TestCase");
12: }
13:
14: public void run(TestResult testResult) {
15: MockCore.reset();
16: try {
17: super .run(testResult);
18: } finally {
19: MockCore.verify();
20: }
21: }
22:
23: public void setUp() throws Exception {
24: // MockCore.setOptions(MockCore.OPT_RESET_ON_VERIFY_ONLY);
25: }
26:
27: public void tearDown() throws Exception {
28: MockCore.reset();
29: }
30: }
|