public void testFictionalProgressErrorHandling(){
  String xml="";
  xml+=createStartMissionXml("start","Name");
  xml+=createTimerMomentWithFictionalProgressXML("start",null,1.0,"");
  xml+=createEndMissionXml();
  InputStream momentInputStream=new ByteArrayInputStream(xml.getBytes());
  mMission=new Mission(mMissionData);
  boolean didMissionParseFail=false;
  try {
    mMission.readMoments(momentInputStream);
  }
 catch (  MissionParseException e) {
    didMissionParseFail=true;
  }
  Assert.assertEquals(true,didMissionParseFail);
}

public void testFictionalProgressErrorHandling ( ) { String xml = "" ; xml += createStartMissionXml ( "start" , "Name" ) ; xml += createTimerMomentWithFictionalProgressXML ( "start" , null , 1.0 , "" ) ; xml += createEndMissionXml ( ) ; InputStream momentInputStream = new ByteArrayInputStream ( xml . getBytes ( ) ) ; mMission = new Mission ( mMissionData ) ; boolean didMissionParseFail = false ; try { mMission . readMoments ( momentInputStream ) ; } catch ( MissionParseException e ) { didMissionParseFail = true ; } Assert . assertEquals ( true , didMissionParseFail ) ; }
test for correct error handling for a fictional progress element that is empty .
