KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tctest > restart > system > ObjectDataRestartTestAppTest


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tctest.restart.system;
5
6 import com.tc.simulator.listener.ListenerProvider;
7 import com.tc.simulator.listener.MockStatsListener;
8 import com.tc.simulator.listener.OutputListener;
9 import com.tc.simulator.listener.ResultsListener;
10 import com.tc.simulator.listener.StatsListener;
11 import com.tctest.runner.TransparentAppConfig;
12
13 import java.util.Properties JavaDoc;
14
15 import junit.framework.TestCase;
16
17 /**
18  * This is a test of the test app, not the system test.
19  */

20 public class ObjectDataRestartTestAppTest extends TestCase {
21
22   private TransparentAppConfig cfg;
23
24   public void setUp() throws Exception JavaDoc {
25     cfg = new TransparentAppConfig(ObjectDataRestartTestApp.class.getName(), null, 1, 1, null);
26   }
27
28   public void testBasics() {
29     ObjectDataRestartTestApp app = new ObjectDataRestartTestApp("test", cfg, new ListenerProvider() {
30
31       public OutputListener getOutputListener() {
32         return null;
33       }
34
35       public ResultsListener getResultsListener() {
36         return null;
37       }
38
39       public StatsListener newStatsListener(Properties JavaDoc properties) {
40         return new MockStatsListener();
41       }
42       
43     });
44     app.run();
45   }
46
47 }
48
Popular Tags