Changeset 34 in tmcsimulator for trunk/test/tmcsim/cadsimulator/CADSimulatorGUITest.java
- Timestamp:
- 04/29/2016 12:56:43 AM (10 years ago)
- File:
-
- 1 edited
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());
Note: See TracChangeset
for help on using the changeset viewer.
