Ignore:
Timestamp:
11/02/2017 01:42:45 PM (9 years ago)
Author:
jtorres
Message:

branches/FEPSimulator/tests/HighwaysParserTest.cpp: Unit test for HighwaysParser?.cpp. HighwaysTest?.java: now passing toXML(), added test for toCondensedFormat() method. LoadHighwaysTest?.java: passing. LoadSadDotsTest?.java: conformed to changes, not passing. Highway.java/Highways.java: converted class attributes to List instead of ArrayList?. Highways.java: corrected toCondensedFormat() method comments and added comments throughout file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/atmsdriver/model/LoadHighwaysTest.java

    r209 r212  
    77import java.nio.file.Path; 
    88import java.util.ArrayList; 
     9import java.util.List; 
    910import junit.framework.TestCase; 
    1011 
     
    8384                "test/atmsdriver/model/lds_loadhighways_sample.txt", 
    8485                "localhost", 8080); 
    85         System.out.println(highways.toCondensedFormat(false)); 
     86 
    8687        // Test for correct number of highways 
    87         ArrayList<Highway> result = highways.highways; 
     88        List<Highway> result = (ArrayList) highways.highways; 
    8889        assertEquals(1, result.size()); 
    8990         
     
    9697         
    9798        // Test 5 stations are sorted by postmile 
    98         ArrayList<Station> stations = fiveS.stations; 
     99        List<Station> stations = (ArrayList) fiveS.stations; 
    99100        ArrayList<Double> stationsPostmiles = new ArrayList<>(); 
    100101        for(Station station : stations) 
Note: See TracChangeset for help on using the changeset viewer.