1 4 package com.tctest; 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 ; 14 15 import junit.framework.TestCase; 16 17 public class ConcurrentLockSystemTestAppTest extends TestCase { 18 19 private TransparentAppConfig cfg; 20 21 public void setUp() throws Exception { 22 cfg = new TransparentAppConfig(ConcurrentLockSystemTestApp.class.getName(), null, 1, 1, null); 23 } 24 25 public void testBasics() { 26 ConcurrentLockSystemTestApp app = new ConcurrentLockSystemTestApp("test", cfg, new ListenerProvider() { 27 28 public OutputListener getOutputListener() { 29 return null; 30 } 31 32 public ResultsListener getResultsListener() { 33 return null; 34 } 35 36 public StatsListener newStatsListener(Properties properties) { 37 return new MockStatsListener(); 38 } 39 40 }); 41 app.run(); 42 } 43 } 44 | Popular Tags |