Commit bd5424a0 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

fix test compilation issues

parent a144a489
Pipeline #38616 passed with stage
in 20 minutes and 8 seconds
......@@ -15,7 +15,6 @@ import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;
import org.sbml.jsbml.ext.render.LocalStyle;
import lcsb.mapviewer.converter.model.sbml.SbmlBioEntityExporter;
import lcsb.mapviewer.converter.model.sbml.SbmlTestFunctions;
import lcsb.mapviewer.model.map.model.Model;
import lcsb.mapviewer.model.map.model.ModelFullIndexed;
......@@ -61,7 +60,7 @@ public class SbmlSpeciesExporterRenderShapeTest extends SbmlTestFunctions {
Model model = new ModelFullIndexed(null);
model.addElement(species);
SbmlBioEntityExporter<Species, org.sbml.jsbml.Species> exporter = helper.createExporter(model);
SbmlSpeciesExporter exporter = helper.createExporter(model);
LocalStyle style = exporter.createStyle(species);
assertNotNull(style);
......
......@@ -75,7 +75,7 @@ public class SbmlSpeciesExporterTest extends SbmlTestFunctions {
model.addElement(protein1);
model.addElement(protein2);
SbmlBioEntityExporter<Species, org.sbml.jsbml.Species> exporter = helper.createExporter(model, Arrays.asList(SbmlExtension.values()));
SbmlSpeciesExporter exporter = helper.createExporter(model, Arrays.asList(SbmlExtension.values()));
assertFalse(exporter.getSbmlIdKey(protein1).equals(exporter.getSbmlIdKey(protein2)));
}
......
......@@ -14,7 +14,7 @@ import lcsb.mapviewer.model.map.species.Species;
public class SbmlSpeciesExporterTestHelper {
org.sbml.jsbml.Model sbmlModel;
public SbmlBioEntityExporter<Species, org.sbml.jsbml.Species> createExporter(Model model, Collection<SbmlExtension> sbmlExtensions)
public SbmlSpeciesExporter createExporter(Model model, Collection<SbmlExtension> sbmlExtensions)
throws InconsistentModelException {
SBMLDocument doc = new SBMLDocument(3, 1);
sbmlModel = doc.createModel(model.getIdModel());
......@@ -26,11 +26,11 @@ public class SbmlSpeciesExporterTestHelper {
Arrays.asList(SbmlExtension.values()));
compartmentExporter.exportElements();
SbmlBioEntityExporter<Species, org.sbml.jsbml.Species> result = new SbmlSpeciesExporter(sbmlModel, model, sbmlExtensions, compartmentExporter);
SbmlSpeciesExporter result = new SbmlSpeciesExporter(sbmlModel, model, sbmlExtensions, compartmentExporter);
return result;
}
public SbmlBioEntityExporter<Species, org.sbml.jsbml.Species> createExporter(Model model) throws InconsistentModelException {
public SbmlSpeciesExporter createExporter(Model model) throws InconsistentModelException {
return createExporter(model, Arrays.asList(new SbmlExtension[] { SbmlExtension.RENDER, SbmlExtension.LAYOUT }));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment