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;
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: public class ConcurrentLockSystemTestAppTest extends TestCase {
20:
21: private TransparentAppConfig cfg;
22:
23: public void setUp() throws Exception {
24: cfg = new TransparentAppConfig(
25: ConcurrentLockSystemTestApp.class.getName(), null, 1,
26: 1, null);
27: }
28:
29: public void testBasics() {
30: ConcurrentLockSystemTestApp app = new ConcurrentLockSystemTestApp(
31: "test", cfg, new ListenerProvider() {
32:
33: public OutputListener getOutputListener() {
34: return null;
35: }
36:
37: public ResultsListener getResultsListener() {
38: return null;
39: }
40:
41: public StatsListener newStatsListener(
42: Properties properties) {
43: return new MockStatsListener();
44: }
45:
46: public MutationCompletionListener getMutationCompletionListener() {
47: return null;
48: }
49:
50: });
51: app.run();
52: }
53: }
|