Changeset 34 in tmcsimulator for trunk/test/tmcsim/simulationmanager/SimulationManagerSmokeTest.java
- Timestamp:
- 04/29/2016 12:56:43 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.
