mil.dod.th.ose.remote/src/mil/dod/th/ose/remote/api/EnumConverter.java
public static MissionTestResult convertToMissionTestResult(final TestResult result) throws IllegalArgumentException
    {
        if (TEST_RESULT.containsValue(result))
        {
            return TEST_RESULT.inverse().get(result);
        }
        throw new IllegalArgumentException(String.format("Invalid Test Result: %s", result));
    }
/**
     * Helper method that translates {@link TestResult} to protocol buffer equivalents.
     * @param result
     *     the test result to translate
     * @return
     *     the protocol buffer equivalent
     * @throws IllegalArgumentException
     *     in the event that a test result value is received that does not have a protocol buffer equivalent
     */
Helper method that translates  TestResult to protocol buffer equivalents.
@param result
the test result to translate
@return
the protocol buffer equivalent
@throws IllegalArgumentException
in the event that a test result value is received that does not have a protocol buffer equivalent
Helper method that translates TestResult to protocol buffer equivalents . @param result the test result to translate @return the protocol buffer equivalent @throws IllegalArgumentException in the event that a test result value is received that does not have a protocol buffer equivalent
public static MissionTestResult convertToMissionTestResult(final TestResult result) throws IllegalArgumentException
    {
        if (TEST_RESULT.containsValue(result))
        {
            return TEST_RESULT.inverse().get(result);
        }
        throw new IllegalArgumentException(String.format("Invalid Test Result: %s", result));
    }
public static MissionTestResult convertToMissionTestResult ( final TestResult result ) throws IllegalArgumentException { if ( TEST_RESULT . containsValue ( result ) ) { return TEST_RESULT . inverse ( ) . get ( result ) ; } throw new IllegalArgumentException ( String . format ( "Invalid Test Result: %s" , result ) ) ; }
Helper method that translates {@link TestResult} to protocol buffer equivalents.
Helper method that translates { @link TestResult } to protocol buffer equivalents .