-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
This next test will pass
public void testGetType_Reporting() throws Exception {
String actualTypeString = "reporting";
Navaid.Type expectedType = Navaid.Type.getType(actualTypeString);
assertThat(expectedType, is(Navaid.Type.DESIGNATED));
}Is reporting type usage context the reportingATC use cases (Indicating the type of position report required by an ATC Unit. Eg.: compulsory or on request.)?
If 'yes' why REPORTING type is treated as DESIGNATED?
Below is code fragment under test
/**
* Given a String which represents a Navaid type, return the Navaid Type.
*/
public static Type getType(String aTypeStr) {
String[] typeStrs = {"DME", "NDB", "NDB-DME", "NDBDME", "TACAN",
"VOR", "VOR-DME", "VORDME", "VORTAC", "VOT", "MARKER",
"LOC", "GP", "DESIGNATED", "REPORTING"};
Type[] types = {DME, NDB, NDBDME, NDBDME, TACAN,
VOR, VORDME, VORDME, VORTAC, VOT, MARKER,
LOC, GP, DESIGNATED, DESIGNATED};
Type returnType = null;
for (int i=0; i<typeStrs.length; ++i) {
if (aTypeStr.equalsIgnoreCase(typeStrs[i])) {
returnType = types[i];
break;
}
}Metadata
Metadata
Assignees
Labels
No labels