public void testMissionNameConstruction(){
  String xml="";
  xml+=createStartMissionXml("","Name");
  xml+=createEndMissionXml();
  InputStream missionInputStream=new ByteArrayInputStream(xml.getBytes());
  String missionName=null;
  try {
    missionName=MissionParser.getMissionName(missionInputStream);
  }
 catch (  MissionParseException e) {
    e.printStackTrace();
  }
  Assert.assertEquals("Name",missionName);
}

public void testMissionNameConstruction ( ) { String xml = "" ; xml += createStartMissionXml ( "" , "Name" ) ; xml += createEndMissionXml ( ) ; InputStream missionInputStream = new ByteArrayInputStream ( xml . getBytes ( ) ) ; String missionName = null ; try { missionName = MissionParser . getMissionName ( missionInputStream ) ; } catch ( MissionParseException e ) { e . printStackTrace ( ) ; } Assert . assertEquals ( "Name" , missionName ) ; }
test for correct reading of a mission name .
