Changeset 191 in tmcsimulator for trunk/test/atmsdriver
- Timestamp:
- 10/30/2017 01:35:05 PM (9 years ago)
- File:
-
- 1 edited
-
trunk/test/atmsdriver/model/HighwaysTest.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/atmsdriver/model/HighwaysTest.java
r185 r191 43 43 44 44 /** 45 * Test of toXML method, of class Network. 45 * Test of toString method 46 */ 47 public void testToString() { 48 System.out.println("toString"); 49 Highways highways = new Highways( 50 "config/vds_data/highways_fullmap.txt", 51 "localhost", 8080); 52 highways.getHighwayByRouteNumber(5).stations.get(0).loops.get(0).vol = 1; 53 String result = highways.toString(); 54 System.out.println(result); 55 assertEquals(expString, result); 56 } 57 String expString = 58 "241 ------------------------------------------------------------\n" 59 +" 5 @-------------------------------------------------------------------------------------------------------------------------------------------\n" 60 +"405 --------------------------------------------------------------------------------\n" 61 +"133 ----------------\n" 62 +"261 -----------------\n" 63 +" 22 ----------------------------------\n" 64 +" 55 ------------------------------------------\n" 65 +" 73 -----------------------------------------------------\n" 66 +" 57 ------------------------------------------\n" 67 +" 91 --------------------------------------------------------------\n" 68 +"605 ---\n"; 69 70 /** 71 * Test of toXML method 46 72 */ 47 73 public void testToXML() { 48 74 System.out.println("toXML"); 49 75 Highways highways = new Highways( 50 "config/vds_data/highways Meta.txt",76 "config/vds_data/highways_fullmap.txt", 51 77 "localhost", 8080); 52 78 String result = highways.toXML();
Note: See TracChangeset
for help on using the changeset viewer.
