mil.dod.th.ose.shared/test/mil/dod/th/ose/shared/protoconverter/TestJaxbProtoObjectConverterImpl.java
@Test
    public void testMissionParameters() throws ObjectConverterException
    {
        MissionProgramParameters params = new MissionProgramParameters()
            .withProgramName("herald")
            .withTemplateName("harry")
            .withParameters(new MapEntry("tomato", 23), new MapEntry("onion", "Charlies"))
            .withSchedule(new MissionProgramSchedule(true, true, false, 1L, true, 2L));
        
        Message paramsMessage = m_SUT.convertToProto(params);
        MissionProgramParameters convertedParams = (MissionProgramParameters)m_SUT.convertToJaxb(paramsMessage);
        
        //Check that the converted message matches the original.
        JaxbUtil.assertEqualContent(convertedParams, params);
    }
/**
     * Test converting mission parameter data.
     * Verifies multitype data is handled.
     */
Test converting mission parameter data.
Verifies multitype data is handled.
Test converting mission parameter data . Verifies multitype data is handled .
@Test
    public void testMissionParameters() throws ObjectConverterException
    {
        MissionProgramParameters params = new MissionProgramParameters()
            .withProgramName("herald")
            .withTemplateName("harry")
            .withParameters(new MapEntry("tomato", 23), new MapEntry("onion", "Charlies"))
            .withSchedule(new MissionProgramSchedule(true, true, false, 1L, true, 2L));
        Message paramsMessage = m_SUT.convertToProto(params);
        MissionProgramParameters convertedParams = (MissionProgramParameters)m_SUT.convertToJaxb(paramsMessage);
        JaxbUtil.assertEqualContent(convertedParams, params);
    }
@ Test public void testMissionParameters ( ) throws ObjectConverterException { MissionProgramParameters params = new MissionProgramParameters ( ) . withProgramName ( "herald" ) . withTemplateName ( "harry" ) . withParameters ( new MapEntry ( "tomato" , 23 ) , new MapEntry ( "onion" , "Charlies" ) ) . withSchedule ( new MissionProgramSchedule ( true , true , false , 1L , true , 2L ) ) ; Message paramsMessage = m_SUT . convertToProto ( params ) ; MissionProgramParameters convertedParams = ( MissionProgramParameters ) m_SUT . convertToJaxb ( paramsMessage ) ; JaxbUtil . assertEqualContent ( convertedParams , params ) ; }
Test converting mission parameter data.
Test converting mission parameter data .
//Check that the converted message matches the original.