1 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 ; 14 15 import junit.framework.TestCase; 16 17 20 public class ObjectDataRestartTestAppTest extends TestCase { 21 22 private TransparentAppConfig cfg; 23 24 public void setUp() throws Exception { 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 properties) { 40 return new MockStatsListener(); 41 } 42 43 }); 44 app.run(); 45 } 46 47 } 48 | Popular Tags |