01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package com.tctest.restart.system;
06:
07: import com.tc.simulator.listener.ListenerProvider;
08: import com.tc.simulator.listener.MockStatsListener;
09: import com.tc.simulator.listener.MutationCompletionListener;
10: import com.tc.simulator.listener.OutputListener;
11: import com.tc.simulator.listener.ResultsListener;
12: import com.tc.simulator.listener.StatsListener;
13: import com.tctest.runner.TransparentAppConfig;
14:
15: import java.util.Properties;
16:
17: import junit.framework.TestCase;
18:
19: /**
20: * This is a test of the test app, not the system test.
21: */
22: public class ObjectDataTestAppTest extends TestCase {
23:
24: private TransparentAppConfig cfg;
25:
26: public void setUp() throws Exception {
27: cfg = new TransparentAppConfig(ObjectDataTestApp.class
28: .getName(), null, 1, 1, null);
29: }
30:
31: public void testBasics() {
32: ObjectDataTestApp app = new ObjectDataTestApp("test", cfg,
33: new ListenerProvider() {
34:
35: public OutputListener getOutputListener() {
36: return null;
37: }
38:
39: public ResultsListener getResultsListener() {
40: return null;
41: }
42:
43: public StatsListener newStatsListener(
44: Properties properties) {
45: return new MockStatsListener();
46: }
47:
48: public MutationCompletionListener getMutationCompletionListener() {
49: return null;
50: }
51:
52: });
53: app.run();
54: }
55:
56: }
|