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

skip info about warnings when serializing

parent 33e570b5
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",!386Resolve "Continous integration tests"
......@@ -555,14 +555,13 @@ public class GPMLToModelTest extends WikipathwaysTestFunctions {
try {
String fileName = "testFiles/small/protein_with_modification.gpml";
Model model1 = new GPMLToModel().getModel(fileName);
assertEquals(0, getWarnings().size());
Gene protein = (Gene) model1.getElementByElementId("be3de");
assertNotNull(protein);
assertEquals(2, protein.getModificationResidues().size());
CellDesignerXmlParser parser = new CellDesignerXmlParser();
String xml = parser.toXml(model1);
String xml = parser.toXml(model1, false);
InputStream is = new ByteArrayInputStream(xml.getBytes(StandardCharsets.UTF_8));
Model model2 = parser.createModel(new ConverterParams().inputStream(is).sizeAutoAdjust(false));
......@@ -580,14 +579,13 @@ public class GPMLToModelTest extends WikipathwaysTestFunctions {
try {
String fileName = "testFiles/small/protein_with_modification_2.gpml";
Model model1 = new GPMLToModel().getModel(fileName);
assertEquals(0, getWarnings().size());
Gene protein = (Gene) model1.getElementByElementId("be3de");
assertNotNull(protein);
assertEquals(2, protein.getModificationResidues().size());
CellDesignerXmlParser parser = new CellDesignerXmlParser();
String xml = parser.toXml(model1);
String xml = parser.toXml(model1, false);
InputStream is = new ByteArrayInputStream(xml.getBytes(StandardCharsets.UTF_8));
Model model2 = parser.createModel(new ConverterParams().inputStream(is).sizeAutoAdjust(false));
......
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