Changeset 266 in tmcsimulator for trunk/test
- Timestamp:
- 02/16/2019 03:22:09 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/atmsdriver/model/PostmileCoordsTest.java
r248 r266 37 37 38 38 System.out.println("load"); 39 String line1 = "5 N 4.02, 33.33, -117.117 \n5 S 3.56, 33.33, -117.117";39 String line1 = "5 N 4.02, 33.33, -117.117,Dyer Rd\n5 S 3.56, 33.33, -117.117,Dyer Rd"; 40 40 Scanner scan = new Scanner(line1).useDelimiter("\\A"); 41 41 pmc = new PostmileCoords(); 42 42 pmc.load(scan); 43 43 PostmileCoords.Postmile pm = new PostmileCoords.Postmile("5 N 4.02", "33.33", 44 "-117.117" );44 "-117.117","Dyer Rd"); 45 45 assertEquals(pm,pmc.get(0)); 46 46 assert(pmc.size() == 2); … … 48 48 public void testLoadwithPrefix() throws FileNotFoundException 49 49 { 50 51 50 System.out.println("load"); 52 String line1 = "5 N R4.02, 33.33, -117.117 \n5 S 3.56, 33.33, -117.117";51 String line1 = "5 N R4.02, 33.33, -117.117,Dyer Rd\n5 S 3.56, 33.33, -117.117,Dyer Rd"; 53 52 Scanner scan = new Scanner(line1).useDelimiter("\\A"); 54 53 pmc = new PostmileCoords(); 55 54 pmc.load(scan); 56 55 PostmileCoords.Postmile pm = new PostmileCoords.Postmile("5 N 4.02", "33.33", 57 "-117.117" );56 "-117.117","Dyer Rd"); 58 57 assertEquals(pm,pmc.get(0)); 59 58 assert(pmc.size() == 2); … … 76 75 PostmileCoords.Postmile result = pmc.find("5 N 4.02"); 77 76 assertNotNull(result); 78 PostmileCoords.Postmile pm = new PostmileCoords.Postmile("5 N 4.02", "33.33", "-117.117" );77 PostmileCoords.Postmile pm = new PostmileCoords.Postmile("5 N 4.02", "33.33", "-117.117","Dyer Rd"); 79 78 assertEquals(pm,result); 80 79 PostmileCoords.Postmile result2 = pmc.find("X"); 81 80 assertNull(result2); 81 System.out.println(pm.toJson()); 82 82 } 83 83 }
Note: See TracChangeset
for help on using the changeset viewer.
