diff --git a/converter-SBGNML/src/test/java/lcsb/mapviewer/converter/model/sbgnml/SbgnmlTestFunctions.java b/converter-SBGNML/src/test/java/lcsb/mapviewer/converter/model/sbgnml/SbgnmlTestFunctions.java index 27514c0fd5398bc8fb3a73cf082fa85aec673fc2..5f38baf0e8e31e2be6d4a8d59ecc2b81d39651fe 100644 --- a/converter-SBGNML/src/test/java/lcsb/mapviewer/converter/model/sbgnml/SbgnmlTestFunctions.java +++ b/converter-SBGNML/src/test/java/lcsb/mapviewer/converter/model/sbgnml/SbgnmlTestFunctions.java @@ -40,19 +40,18 @@ import java.nio.file.Files; public class SbgnmlTestFunctions extends TestUtils { protected static Logger logger = LogManager.getLogger(); - + private static int counter = 0; + private final Converter sbgnmlConverter = new SbgnmlXmlConverter(); @Rule public UnitTestFailedWatcher unitTestFailedWatcher = new UnitTestFailedWatcher(); - private static int counter = 0; - protected void showImage(final Model model) throws Exception { String dir = Files.createTempDirectory("sbml-temp-images-dir").toFile().getAbsolutePath(); AbstractImageGenerator.Params params = new AbstractImageGenerator.Params().height(model.getHeight()) .width(model.getWidth()).nested(true).scale(1).level(20).x(0).y(0).model(model); NormalImageGenerator nig = new PngImageGenerator(params); - String pathWithouExtension = dir + "/" + model.getName(); - String pngFilePath = pathWithouExtension.concat(".png"); + String pathWithoutExtension = dir + "/" + model.getName(); + String pngFilePath = pathWithoutExtension.concat(".png"); nig.saveToFile(pngFilePath); Desktop.getDesktop().open(new File(pngFilePath)); } @@ -124,11 +123,9 @@ public class SbgnmlTestFunctions extends TestUtils { return structuralState; } - private final Converter sbgnmlConverter = new SbgnmlXmlConverter(); - protected Model serializeAndCleanOverSbgn(final Model model) throws InconsistentModelException, ConverterException, InvalidInputDataExecption { String sbgn = sbgnmlConverter.model2String(model); -// logger.debug(sbgn); + // logger.debug(sbgn); Model model2 = sbgnmlConverter.createModel( new ConverterParams().inputStream(new ByteArrayInputStream(sbgn.getBytes(StandardCharsets.UTF_8))));