mil.dod.th.ose.shared/test/mil/dod/th/ose/shared/protoconverter/TestJaxbProtoObjectConverterImpl.java
@Test
    public void testMissionTemplate() throws ObjectConverterException
    {
        List<MissionVariableMetaData> missionVarData = new ArrayList<>();
        MissionVariableMetaData data1 = new MissionVariableMetaData("one", "2", null, "1", "4", "numbers", 
                "more numbers", MissionVariableTypesEnum.INTEGER);
        missionVarData.add(data1);
        MissionVariableMetaData data2 = new MissionVariableMetaData("blob", "", null, null, null, "link", 
                "more links", MissionVariableTypesEnum.LINK_LAYER);
        missionVarData.add(data2);
        MissionProgramTemplate template = new MissionProgramTemplate(
                "me", "sourcearoo", "description", "j", new DigitalMedia(new byte[]{1, 2}, ".jpeg"), 
                null, true, true, false, true, false, false, missionVarData);
        
        Message templateMessage = m_SUT.convertToProto(template);
        MissionProgramTemplate convertedTemplate = (MissionProgramTemplate)m_SUT.convertToJaxb(templateMessage);
        
        //Check that the converted message matches the original.
        JaxbUtil.assertEqualContent(convertedTemplate, template);
    }
/**
     * Test converting mission template data.
     * Verify variable metadata extensions can be translated.
     */
Test converting mission template data.
Verify variable metadata extensions can be translated.
Test converting mission template data . Verify variable metadata extensions can be translated .
@Test
    public void testMissionTemplate() throws ObjectConverterException
    {
        List<MissionVariableMetaData> missionVarData = new ArrayList<>();
        MissionVariableMetaData data1 = new MissionVariableMetaData("one", "2", null, "1", "4", "numbers", 
                "more numbers", MissionVariableTypesEnum.INTEGER);
        missionVarData.add(data1);
        MissionVariableMetaData data2 = new MissionVariableMetaData("blob", "", null, null, null, "link", 
                "more links", MissionVariableTypesEnum.LINK_LAYER);
        missionVarData.add(data2);
        MissionProgramTemplate template = new MissionProgramTemplate(
                "me", "sourcearoo", "description", "j", new DigitalMedia(new byte[]{1, 2}, ".jpeg"), 
                null, true, true, false, true, false, false, missionVarData);
        Message templateMessage = m_SUT.convertToProto(template);
        MissionProgramTemplate convertedTemplate = (MissionProgramTemplate)m_SUT.convertToJaxb(templateMessage);
        JaxbUtil.assertEqualContent(convertedTemplate, template);
    }
@ Test public void testMissionTemplate ( ) throws ObjectConverterException { List < MissionVariableMetaData > missionVarData = new ArrayList < > ( ) ; MissionVariableMetaData data1 = new MissionVariableMetaData ( "one" , "2" , null , "1" , "4" , "numbers" , "more numbers" , MissionVariableTypesEnum . INTEGER ) ; missionVarData . add ( data1 ) ; MissionVariableMetaData data2 = new MissionVariableMetaData ( "blob" , "" , null , null , null , "link" , "more links" , MissionVariableTypesEnum . LINK_LAYER ) ; missionVarData . add ( data2 ) ; MissionProgramTemplate template = new MissionProgramTemplate ( "me" , "sourcearoo" , "description" , "j" , new DigitalMedia ( new byte [ ] { 1 , 2 } , ".jpeg" ) , null , true , true , false , true , false , false , missionVarData ) ; Message templateMessage = m_SUT . convertToProto ( template ) ; MissionProgramTemplate convertedTemplate = ( MissionProgramTemplate ) m_SUT . convertToJaxb ( templateMessage ) ; JaxbUtil . assertEqualContent ( convertedTemplate , template ) ; }
Test converting mission template data.
Test converting mission template data .
//Check that the converted message matches the original.