Commit 2b022463 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

tmp file removed after test is finished

parent d2daa622
......@@ -187,9 +187,13 @@ public class ConvertRestImplTest extends RestTestFunctions {
String result = convertRestImpl.convert(token, "CellDesigner_SBML", "SBML", content);
ByteArrayOutputStream result1 = convertRestImpl.converToImage(token, "SBML", "svg", result);
FileOutputStream outputStream = new FileOutputStream("testFiles/convert/glycolysis2.svg");
File output = new File("testFiles/convert/glycolysis2.svg");
FileOutputStream outputStream = new FileOutputStream(output);
outputStream.write(result1.toByteArray());
outputStream.close();
assertTrue(output.exists());
output.delete();
} catch (Exception e) {
......
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