Skip to content
Snippets Groups Projects
Commit 58f0951a authored by Piotr Gawron's avatar Piotr Gawron
Browse files

unit test updated to check against better error message

parent 53d277ec
No related branches found
No related tags found
2 merge requests!630WIP: Resolve "The privileges of a new user are not saved in some cases",!545Import from sbgn issue
......@@ -151,7 +151,7 @@ public class SpeciesAliasXmlParser extends AbstractAliasXmlParser<Species> {
species.updateModelElementAfterLayoutAdded(result);
return result;
} catch (NotImplementedException e) {
throw new InvalidXmlSchemaException(errorPrefix + "Problem with creating species");
throw new InvalidXmlSchemaException(errorPrefix + "Problem with creating species", e);
}
}
......
......@@ -272,8 +272,9 @@ public class SpeciesAliasXmlParserTest extends CellDesignerTestFunctions {
String xmlString = readFile("testFiles/invalid/species_alias6.xml");
parser.parseXmlAlias(xmlString);
fail("Exception expected");
} catch (NotImplementedException e) {
assertTrue(e.getMessage().contains("Unkown alias state"));
} catch (InvalidXmlSchemaException e) {
logger.debug(e.getMessage());
assertTrue(e.getMessage().contains("Problem with creating species"));
} catch (Exception e) {
e.printStackTrace();
throw e;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment