Changeset 34 in tmcsimulator for trunk/test/tmcsim
- Timestamp:
- 04/29/2016 12:56:43 AM (10 years ago)
- Location:
- trunk/test/tmcsim
- Files:
-
- 3 edited
-
cadsimulator/CADSimulatorGUITest.java (modified) (4 diffs)
-
cadsimulator/CADSimulatorTest.java (modified) (3 diffs)
-
simulationmanager/SimulationManagerSmokeTest.java (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/tmcsim/cadsimulator/CADSimulatorGUITest.java
r19 r34 5 5 import java.util.logging.Level; 6 6 import java.util.logging.Logger; 7 7 8 import static junit.framework.Assert.assertEquals; 8 9 import static junit.framework.Assert.fail; … … 81 82 CADSimulatorFixture.writedata("config.txt", configData); 82 83 System.out.println("CADSimulator constructor"); 83 System.setProperty("C AD_SIM_PROPERTIES", "config.txt");84 System.setProperty("CONFIG_DIR", "config/testConfig"); 84 85 Window cadwindow = null; 85 if (System.getProperty("C AD_SIM_PROPERTIES") != null)86 if (System.getProperty("CONFIG_DIR") != null) 86 87 { 87 88 cadwindow = WindowInterceptor.run(new Trigger() … … 91 92 try 92 93 { 93 app = new CADSimulator(System.getProperty("CAD_SIM_PROPERTIES")); 94 app = new CADSimulator(System.getProperty("CONFIG_DIR") + System.getProperty("file.separator") + "cad_simulator_config.properties"); 95 94 96 } catch (Exception e) 95 97 { … … 100 102 } else 101 103 { 102 fail("C AD_SIM_PROPERTIESsystem property not defined.");104 fail("CONFIG_DIR system property not defined."); 103 105 } 104 106 assertEquals("CAD Simulator", cadwindow.getTitle()); -
trunk/test/tmcsim/cadsimulator/CADSimulatorTest.java
r5 r34 59 59 { 60 60 System.out.println("CADSimulator constructor"); 61 System.setProperty("C AD_SIM_PROPERTIES", "config/cad_simulator_config.properties");61 System.setProperty("CONFIG_DIR", "config/testConfig"); 62 62 Window cadwindow = null; 63 if (System.getProperty("C AD_SIM_PROPERTIES") != null)63 if (System.getProperty("CONFIG_DIR") != null) 64 64 { 65 65 cadwindow = WindowInterceptor.run(new Trigger() … … 69 69 try 70 70 { 71 app = new CADSimulator(System.getProperty("C AD_SIM_PROPERTIES"));71 app = new CADSimulator(System.getProperty("CONFIG_DIR") + System.getProperty("file.separator") + "cad_simulator_config.properties"); 72 72 } 73 73 catch (Exception e) … … 80 80 else 81 81 { 82 fail("C AD_SIM_PROPERTIESsystem property not defined.");82 fail("CONFIG_DIR system property not defined."); 83 83 } 84 84 assertEquals("CAD Simulator", cadwindow.getTitle()); -
trunk/test/tmcsim/simulationmanager/SimulationManagerSmokeTest.java
r13 r34 35 35 36 36 Window cadwindow = null; 37 System.setProperty("C AD_SIM_PROPERTIES", "config/cad_simulator_smoketest_config.properties");38 if (System.getProperty("C AD_SIM_PROPERTIES") != null)37 System.setProperty("CONFIG_DIR", "config/testConfig"); 38 if (System.getProperty("CONFIG_DIR") != null) 39 39 { 40 40 cadwindow = WindowInterceptor.run(new Trigger() … … 44 44 try 45 45 { 46 engine = new CADSimulator(System.getProperty("CAD_SIM_PROPERTIES")); 46 engine = new CADSimulator(System.getProperty("CONFIG_DIR") + System.getProperty("file.separator") + "cad_simulator_config.properties"); 47 47 48 } catch (Exception e) 48 49 { … … 53 54 } else 54 55 { 55 fail("C AD_SIM_PROPERTIESsystem property not defined.");56 fail("CONFIG_DIR system property not defined."); 56 57 } 57 58 … … 66 67 67 68 Window simMgrWindow = null; 68 System.setProperty(" SIM_MGR_PROPERTIES", "config/sim_manager_smoketest_config.properties");69 if (System.getProperty(" SIM_MGR_PROPERTIES") != null)69 System.setProperty("CONFIG_DIR", "config/testConfig"); 70 if (System.getProperty("CONFIG_DIR") != null) 70 71 { 71 72 simMgrWindow = WindowInterceptor.run(new Trigger() … … 75 76 try 76 77 { 77 simMgrApp = new SimulationManager(System.getProperty("SIM_MGR_PROPERTIES")); 78 //simMgrApp = new SimulationManager(System.getProperty("SIM_MGR_PROPERTIES")); 79 simMgrApp = new SimulationManager(System.getProperty("CONFIG_DIR") + System.getProperty("file.separator") + "sim_manager_config.properties"); 78 80 } catch (Exception ex) 79 81 { … … 84 86 } else 85 87 { 86 fail(" SIM_MGR_PROPERTIESsystem property not defined.");88 fail("CONFIG_DIR system property not defined."); 87 89 } 88 90
Note: See TracChangeset
for help on using the changeset viewer.
