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

when exporting to SBML unnecessary lines are removed, so after deserializing...

when exporting to SBML unnecessary lines are removed, so after deserializing set of lines is different
parent 4c137b82
No related branches found
No related tags found
1 merge request!771Resolve "wrong start and end of reaction lines"
...@@ -563,19 +563,6 @@ public class SbmlExporterTest extends SbmlTestFunctions { ...@@ -563,19 +563,6 @@ public class SbmlExporterTest extends SbmlTestFunctions {
} }
@Test
public void testExportImportOfInputOperator() throws Exception {
Model originalModel = new CellDesignerXmlParser()
.createModel(new ConverterParams().filename("testFiles/cell_designer_problems/heterodimer_association.xml"));
Model model = getModelAfterSerializing(originalModel);
List<Line2D> lines1 = originalModel.getReactions().iterator().next().getLines();
List<Line2D> lines2 = model.getReactions().iterator().next().getLines();
ListComparator<Line2D> comparator = new ListComparator<>(new LineComparator(Configuration.EPSILON));
assertEquals(0, comparator.compare(lines1, lines2));
}
@Test @Test
public void testExportImportOfAdvancedInputOperator() throws Exception { public void testExportImportOfAdvancedInputOperator() throws Exception {
Model originalModel = new CellDesignerXmlParser().createModel(new ConverterParams() Model originalModel = new CellDesignerXmlParser().createModel(new ConverterParams()
...@@ -585,7 +572,7 @@ public class SbmlExporterTest extends SbmlTestFunctions { ...@@ -585,7 +572,7 @@ public class SbmlExporterTest extends SbmlTestFunctions {
Reaction r2 = model.getReactions().iterator().next(); Reaction r2 = model.getReactions().iterator().next();
Line2D line1 = r1.getCenterLine(); Line2D line1 = r1.getCenterLine();
Line2D line2 = r2.getCenterLine(); Line2D line2 = r2.getCenterLine();
assertEquals(0, new LineComparator().compare(line1, line2)); assertEquals(0, new LineComparator().compare(line1, line2));
} }
......
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