Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Sprint task - fix for issue http://bugzilla.bredex.de/333 - disabled …

…caching of test result details after exporting by using separate DB session for exporting.
  • Loading branch information...
commit 71421ff67e620e8c7e3f440ebc22e2c8e20a6d2d 1 parent db4bbe9
@MarkusTiede MarkusTiede authored
View
8 ...nt.ui.rcp/src/org/eclipse/jubula/client/ui/rcp/wizards/ExportTestResultDetailsWizard.java
@@ -16,6 +16,8 @@
import java.util.ArrayList;
import java.util.List;
+import javax.persistence.EntityManager;
+
import org.dom4j.Document;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.SubMonitor;
@@ -123,14 +125,15 @@ public void run(IProgressMonitor monitor) {
SubMonitor.convert(monitor, "Exporting...", //$NON-NLS-1$
m_selectedSummaries.length * 2);
+ final Persistor persistor = Persistor.instance();
+ EntityManager session = persistor.openSession();
try {
for (ITestResultSummaryPO summary : m_selectedSummaries) {
GenerateTestResultTreeOperation operation =
new GenerateTestResultTreeOperation(
summary.getId(),
summary.getInternalProjectID(),
- GeneralStorage.getInstance()
- .getMasterSession());
+ session);
operation.run(subMonitor.newChild(1));
@@ -144,6 +147,7 @@ public void run(IProgressMonitor monitor) {
subMonitor);
}
} finally {
+ persistor.dropSession(session);
monitor.done();
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.