Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Tiede2014-11-14 09:02:18 +0000
committerMarkus Tiede2014-11-14 09:02:18 +0000
commit069fd39cc550e61adf1b520784a5fdb8ce602c19 (patch)
tree9b44ac6bddf0340d77f165ebc40e13cb5300e77f /org.eclipse.jubula.client.ui.rap
parentc4a6cf1b55c229eef3711b9bbf301845bf4038df (diff)
downloadorg.eclipse.jubula.core-069fd39cc550e61adf1b520784a5fdb8ce602c19.tar.gz
org.eclipse.jubula.core-069fd39cc550e61adf1b520784a5fdb8ce602c19.tar.xz
org.eclipse.jubula.core-069fd39cc550e61adf1b520784a5fdb8ce602c19.zip
Non-sprint task - fix for p1 issue http://bugzilla.bredex.de/1579 - part 2: missing RAP adjustments.
Diffstat (limited to 'org.eclipse.jubula.client.ui.rap')
-rw-r--r--org.eclipse.jubula.client.ui.rap/src/org/eclipse/jubula/client/ui/rap/handler/ExportTestResultsHandler.java17
1 files changed, 6 insertions, 11 deletions
diff --git a/org.eclipse.jubula.client.ui.rap/src/org/eclipse/jubula/client/ui/rap/handler/ExportTestResultsHandler.java b/org.eclipse.jubula.client.ui.rap/src/org/eclipse/jubula/client/ui/rap/handler/ExportTestResultsHandler.java
index 69237762c..400321845 100644
--- a/org.eclipse.jubula.client.ui.rap/src/org/eclipse/jubula/client/ui/rap/handler/ExportTestResultsHandler.java
+++ b/org.eclipse.jubula.client.ui.rap/src/org/eclipse/jubula/client/ui/rap/handler/ExportTestResultsHandler.java
@@ -45,9 +45,7 @@ import org.eclipse.jubula.client.core.businessprocess.XmlResultReportWriter;
import org.eclipse.jubula.client.core.model.ITestResultSummaryPO;
import org.eclipse.jubula.client.core.model.SummarizedTestResult;
import org.eclipse.jubula.client.core.model.TestResultNode;
-import org.eclipse.jubula.client.core.persistence.GeneralStorage;
import org.eclipse.jubula.client.core.persistence.Persistor;
-import org.eclipse.jubula.client.core.persistence.TestResultPM;
import org.eclipse.jubula.client.ui.editors.TestResultViewer.GenerateTestResultTreeOperation;
import org.eclipse.jubula.client.ui.rap.constants.IdConstants;
import org.eclipse.jubula.client.ui.rap.servicehandler.DownloadTestResultsServiceHandler;
@@ -250,16 +248,13 @@ public class ExportTestResultsHandler extends AbstractHandler {
// DB connection. Otherwise we will receive an NPE
// while trying to initialize the Master Session.
if (Persistor.instance() != null) {
- List<Number> idsWithDetails =
- TestResultPM.computeTestresultIdsWithDetails(
- GeneralStorage.getInstance().getMasterSession());
for (Object selectedElement : structuredSelection.toArray()) {
- if (selectedElement instanceof ITestResultSummaryPO
- && idsWithDetails.contains(
- ((ITestResultSummaryPO)selectedElement).getId())) {
-
- selectedSummaryList.add(
- (ITestResultSummaryPO)selectedElement);
+ if (selectedElement instanceof ITestResultSummaryPO) {
+ ITestResultSummaryPO summary = (ITestResultSummaryPO)
+ selectedElement;
+ if (summary.hasTestResultDetails()) {
+ selectedSummaryList.add(summary);
+ }
}
}
}

Back to the top