Skip to content

Navaid use case for REPORTING type #1

Description

@senleft

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions