Skip to content
Snippets Groups Projects
Commit 5a7e5577 authored by pkupczyk's avatar pkupczyk
Browse files

SP-164 / BIS-107: Closing EODSQL DataSet objects retrieved by Jython scripts automatically - junit

SVN: 25845
parent 5e2a1511
No related branches found
No related tags found
No related merge requests found
......@@ -103,6 +103,8 @@ public class JythonBasedProcessingPluginTest extends AbstractFileSystemTestCase
{
exactly(2).of(processingPluginScriptRunner).process(with(iDataSetMatcher));
will(returnValue(Status.OK));
one(processingPluginScriptRunner).releaseResources();
}
});
ProcessingStatus status =
......@@ -129,6 +131,8 @@ public class JythonBasedProcessingPluginTest extends AbstractFileSystemTestCase
{
one(processingPluginScriptRunner).process(with(iDataSetMatcher));
will(throwException(new EvaluatorException("blabla")));
one(processingPluginScriptRunner).releaseResources();
}
});
try
......
......@@ -109,6 +109,8 @@ public class JythonBasedReportingPluginTest extends AbstractFileSystemTestCase
with(any(ISimpleTableModelBuilderAdaptor.class)));
one(scriptRunnerFactory).getScriptPath();
will(returnValue("script.py"));
one(reportingPluginScriptRunner).releaseResources();
}
});
plugin.createReport(Arrays.asList(datasetDescription1, datasetDescription2),
......@@ -137,6 +139,8 @@ public class JythonBasedReportingPluginTest extends AbstractFileSystemTestCase
will(throwException(new EvaluatorException("blabla")));
one(scriptRunnerFactory).getScriptPath();
will(returnValue("/path/to/script"));
one(reportingPluginScriptRunner).releaseResources();
}
});
try
......
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