reservations
Class ItineraryTest
java.lang.Object
|
+--reservations.ItineraryTest
- public class ItineraryTest
- extends java.lang.Object
Provides a test of the ItineraryReader and a way to
dump the contents of the destinations file in the forms
of Itinerary objects.
|
Method Summary |
static void |
main(java.lang.String[] args)
Tests the creation of Itinerary objects and displays
the contents of Itinerary objects created from a set
of destinations. |
protected void |
readItineraries(boolean output)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
reader
protected ItineraryReader reader
ItineraryTest
protected ItineraryTest()
ItineraryTest
protected ItineraryTest(java.lang.String file)
readItineraries
protected void readItineraries(boolean output)
main
public static void main(java.lang.String[] args)
- Tests the creation of Itinerary objects and displays
the contents of Itinerary objects created from a set
of destinations.
usage: reservations.ItineraryTest [destinations]
If no command line arguments are provided, uses the
default set of itinerary destinations. If a single
argument is provided, uses that as a file containing
an alternate destination set.