Changeset 228 in tmcsimulator for trunk/test
- Timestamp:
- 11/06/2017 03:27:20 PM (8 years ago)
- Location:
- trunk/test
- Files:
-
- 1 deleted
- 5 edited
-
atmsdriver/model/HighwaysTest.java (modified) (1 diff)
-
atmsdriver/model/LoadSadDotsTest.java (deleted)
-
tmcsim/cadsimulator/CADSimulatorConsoleTest.java (modified) (2 diffs)
-
tmcsim/cadsimulator/CADSimulatorGUITest.java (modified) (1 diff)
-
tmcsim/cadsimulator/viewer/CADSimulatorViewModelTest.java (modified) (1 diff)
-
tmcsim/simulationmanager/SimulationManagerSmokeTest.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/atmsdriver/model/HighwaysTest.java
r213 r228 86 86 String result = highways.toString(); 87 87 System.out.println(result); 88 assertEquals(expToString, result); 89 } 90 String expToString = 91 "241 ------------------------------------------------------------\n" 92 +" 5 @-------------------------------------------------------------------------------------------------------------------------------------------\n" 93 +"405 --------------------------------------------------------------------------------\n" 94 +"133 ----------------\n" 95 +"261 -----------------\n" 96 +" 22 ----------------------------------\n" 97 +" 55 ------------------------------------------\n" 98 +" 73 -----------------------------------------------------\n" 99 +" 57 ------------------------------------------\n" 100 +" 91 --------------------------------------------------------------\n" 101 +"605 ---\n"; 88 assertTrue(result.startsWith(expToString1)); 89 } 90 String expToString1 = 91 "241 N -- ------ -- ------- ------------------------------------- \n" + 92 "241 S - --- -- --------- ------------------------------------ \n" + 93 " 5 N - - ------ --- --- -- --- ---- - -- - - -- - - - -- -- - ---- -- -- --- - - -- - ----- ----- --- - - -- -- - - ---- - - - ------- \n" + 94 " 5 S @--"; 95 96 102 97 103 98 -
trunk/test/tmcsim/cadsimulator/CADSimulatorConsoleTest.java
r123 r228 271 271 + "ParamicsProperties = pconfig.txt\n" 272 272 + "ATMSProperties = empty.txt\n" 273 + "TrafficMgrProperties = tconfig.txt\n" 273 274 + "MediaProperties = empty.txt\n"; 275 static final String trafficMgrData = "Highways_Map_File = config/vds_data/highways_fullmap.txt\n" 276 +"Events_File = config/vds_data/atmsBatchEvents.txt\n" 277 +"FEPSim_IP_addr = localhost\n" 278 +"Output_Destination = Console\n"; 274 279 static final String paramicsData = "ParamicsCommHost = 127.0.0.1\n" 275 280 + "ParamicsCommPort = 4450\n" … … 295 300 // Redirect the standard output 296 301 // System.setOut(ps); 302 File cf = new File ("config.txt"); 303 cf.delete(); 297 304 writedata("config.txt", configData); 305 writedata("tconfig.txt", trafficMgrData); 298 306 writedata("pconfig.txt", paramicsData); 299 307 writedata("empty.txt", ""); -
trunk/test/tmcsim/cadsimulator/CADSimulatorGUITest.java
r123 r228 94 94 // Create a UISpec window from the CADSimulator's Viewer (gui) 95 95 // cadwindow = new Window((CADSimulatorViewer) app.theViewer); 96 assertTrue("Title bar incorrect", cadwindow.getTitle().startsWith("CAD S imulator revision:"));96 assertTrue("Title bar incorrect", cadwindow.getTitle().startsWith("CAD Server revision:")); 97 97 Panel mainPanel = cadwindow.getPanel("contentPane"); 98 98 TextBox txtStatus = mainPanel.getTextBox("simulationStatus"); -
trunk/test/tmcsim/cadsimulator/viewer/CADSimulatorViewModelTest.java
r124 r228 40 40 { 41 41 String actual; 42 assertTrue("Title bar incorrect", cadwindow.getTitle().trim().startsWith("CAD S imulator"));42 assertTrue("Title bar incorrect", cadwindow.getTitle().trim().startsWith("CAD Server")); 43 43 TextBox txtStatus = mainPanel.getTextBox("simulationStatus"); 44 44 actual = txtStatus.getText().trim(); -
trunk/test/tmcsim/simulationmanager/SimulationManagerSmokeTest.java
r123 r228 67 67 68 68 // Check CAD Simulator appears with no script and nothing connected 69 assertTrue("Window title incorrect", cadwindow.getTitle().startsWith("CAD S imulator"));69 assertTrue("Window title incorrect", cadwindow.getTitle().startsWith("CAD Server")); 70 70 Panel mainPanel = cadwindow.getPanel("contentPane"); 71 71 TextBox txtStatus = mainPanel.getTextBox("simulationStatus");
Note: See TracChangeset
for help on using the changeset viewer.
