| Revision 345,
990 bytes
checked in by jdalbey, 7 years ago
(diff) |
|
minor changes to output messages to get unit tests to pass. All passing now.
|
| Line | |
|---|
| 1 | |
|---|
| 2 | package tmcsim.utilities; |
|---|
| 3 | |
|---|
| 4 | import java.io.File; |
|---|
| 5 | import junit.framework.TestCase; |
|---|
| 6 | |
|---|
| 7 | /** |
|---|
| 8 | * |
|---|
| 9 | * @author jdalbey |
|---|
| 10 | */ |
|---|
| 11 | public class BuildHighwayFileTest extends TestCase |
|---|
| 12 | { |
|---|
| 13 | |
|---|
| 14 | public BuildHighwayFileTest(String testName) |
|---|
| 15 | { |
|---|
| 16 | super(testName); |
|---|
| 17 | } |
|---|
| 18 | |
|---|
| 19 | @Override |
|---|
| 20 | protected void setUp() throws Exception |
|---|
| 21 | { |
|---|
| 22 | super.setUp(); |
|---|
| 23 | } |
|---|
| 24 | |
|---|
| 25 | @Override |
|---|
| 26 | protected void tearDown() throws Exception |
|---|
| 27 | { |
|---|
| 28 | super.tearDown(); |
|---|
| 29 | } |
|---|
| 30 | |
|---|
| 31 | /** Just a smoke test to see if it creates the output file */ |
|---|
| 32 | public void testCheckFileCreated() |
|---|
| 33 | { |
|---|
| 34 | System.out.println("createVDSlookup"); |
|---|
| 35 | BuildHighwayFile app = new BuildHighwayFile(); |
|---|
| 36 | app.createLDSdict(); |
|---|
| 37 | app.createVDSdict(); |
|---|
| 38 | app.createLanelookup(); |
|---|
| 39 | app.createHighwayFile(); |
|---|
| 40 | app.showLeftoverVDS(); |
|---|
| 41 | |
|---|
| 42 | String filename = BuildHighwayFile.dirpath +BuildHighwayFile.loopFileName; |
|---|
| 43 | File f = new File(filename); |
|---|
| 44 | assert(f.exists()); |
|---|
| 45 | } |
|---|
| 46 | |
|---|
| 47 | |
|---|
| 48 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.