Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Markus Tiede MarkusTiede authored
8 ...pse.jubula.client.ui.rcp/src/org/eclipse/jubula/client/ui/rcp/wizards/ExportTestResultDetailsWizard.java
@@ -16,6 +16,8 @@
16 16 import java.util.ArrayList;
17 17 import java.util.List;
18 18
  19 +import javax.persistence.EntityManager;
  20 +
19 21 import org.dom4j.Document;
20 22 import org.eclipse.core.runtime.IProgressMonitor;
21 23 import org.eclipse.core.runtime.SubMonitor;
@@ -123,14 +125,15 @@ public void run(IProgressMonitor monitor) {
123 125 SubMonitor.convert(monitor, "Exporting...", //$NON-NLS-1$
124 126 m_selectedSummaries.length * 2);
125 127
  128 + final Persistor persistor = Persistor.instance();
  129 + EntityManager session = persistor.openSession();
126 130 try {
127 131 for (ITestResultSummaryPO summary : m_selectedSummaries) {
128 132 GenerateTestResultTreeOperation operation =
129 133 new GenerateTestResultTreeOperation(
130 134 summary.getId(),
131 135 summary.getInternalProjectID(),
132   - GeneralStorage.getInstance()
133   - .getMasterSession());
  136 + session);
134 137
135 138 operation.run(subMonitor.newChild(1));
136 139
@@ -144,6 +147,7 @@ public void run(IProgressMonitor monitor) {
144 147 subMonitor);
145 148 }
146 149 } finally {
  150 + persistor.dropSession(session);
147 151 monitor.done();
148 152 }
149 153 }

0 comments on commit 71421ff

Please sign in to comment.
Something went wrong with that request. Please try again.