|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectps6.test.TestRecord
public final class TestRecord
A test record is a fairly simple record type to hold a query and its expected results
| Nested Class Summary | |
|---|---|
static class |
TestRecord.TestDB
Database information the various testing databases |
static class |
TestRecord.TestType
Types of tests, e.g. |
| Constructor Summary | |
|---|---|
TestRecord(String testName,
TestRecord.TestDB db,
TestRecord.TestType type,
Address start,
Address end,
String[] directions,
String tripLength,
double length,
String errorMessage)
|
|
| Method Summary | |
|---|---|
TestRecord.TestDB |
getDb()
Get the database information for the test |
String[] |
getDirections()
Get the expected direction lines |
String |
getDirectionType()
Get a string rep. |
Address |
getEnd()
Get the test's ending address |
String |
getErrorMessage()
Get the expected error message |
double |
getLength()
Get the expected length of the path |
Address |
getStart()
Get the starting test's starting address |
String |
getTestName()
Get the name of the Test |
String |
getTripLength()
Get the expected length / travel time line |
TestRecord.TestType |
getType()
Get the type of test |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TestRecord(String testName,
TestRecord.TestDB db,
TestRecord.TestType type,
Address start,
Address end,
String[] directions,
String tripLength,
double length,
String errorMessage)
testName - name of the test (for use by JUnit)db - database information for the testtype - type of the teststart - starting address of the queryend - ending address of the querydirections - sequence of directions lines expected from getDirections, or null if we
expect not to find any directions. the elements must not contain newlines
at the end.tripLength - the trip length or trip time that appear at the end of the directionslength - expected length of the path, or NaN if we expect not to find any
directionserrorMessage - expected error message or null if no error is expected| Method Detail |
|---|
public String getDirectionType()
public String getTestName()
public Address getStart()
public Address getEnd()
public TestRecord.TestType getType()
public String[] getDirections()
public String getTripLength()
public double getLength()
public String getErrorMessage()
public TestRecord.TestDB getDb()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||