[Libreoffice-commits] core.git: qadevOOo/tests
jan iversen
jani at documentfoundation.org
Mon Nov 9 00:12:59 PST 2015
qadevOOo/tests/java/ifc/drawing/_XDrawPageExpander.java | 4 ++--
qadevOOo/tests/java/ifc/drawing/_XDrawPageSummarizer.java | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
New commits:
commit e1fc599eb764186e5d511ace9785463eebbc7028
Author: jan iversen <jani at documentfoundation.org>
Date: Fri Nov 6 09:15:51 2015 +0100
cid#1326599, cid#1326598: added throw (status generation)
Status.failed( ... ); is prepended with a throw
added import
and removed the return;
Change-Id: I73bc971e054c8726e45db0d5a37613c871691eab
Reviewed-on: https://gerrit.libreoffice.org/19793
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
Tested-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/qadevOOo/tests/java/ifc/drawing/_XDrawPageExpander.java b/qadevOOo/tests/java/ifc/drawing/_XDrawPageExpander.java
index 2ba5bb6..1f3eb73 100644
--- a/qadevOOo/tests/java/ifc/drawing/_XDrawPageExpander.java
+++ b/qadevOOo/tests/java/ifc/drawing/_XDrawPageExpander.java
@@ -19,6 +19,7 @@
package ifc.drawing;
import lib.MultiMethodTest;
+import lib.StatusException;
import lib.Status;
import com.sun.star.drawing.XDrawPage;
@@ -51,8 +52,7 @@ public class _XDrawPageExpander extends MultiMethodTest {
XDrawPage oDrawPage = (XDrawPage) tEnv.getObjRelation("DrawPage");
if ( oDrawPage == null ) {
// SKIPPED.FAILED - the ObjectRelation is not available
- Status.failed( "ObjectRelation('DrawPages') XDrawPages n.a.");
- return;
+ throw new StatusException(Status.failed( "ObjectRelation('DrawPages') XDrawPages n.a."));
}
log.println("testing expand() ... ");
diff --git a/qadevOOo/tests/java/ifc/drawing/_XDrawPageSummarizer.java b/qadevOOo/tests/java/ifc/drawing/_XDrawPageSummarizer.java
index dca8370..b346f93 100644
--- a/qadevOOo/tests/java/ifc/drawing/_XDrawPageSummarizer.java
+++ b/qadevOOo/tests/java/ifc/drawing/_XDrawPageSummarizer.java
@@ -19,6 +19,7 @@
package ifc.drawing;
import lib.MultiMethodTest;
+import lib.StatusException;
import lib.Status;
import com.sun.star.drawing.XDrawPageSummarizer;
@@ -50,8 +51,7 @@ public class _XDrawPageSummarizer extends MultiMethodTest {
XDrawPages oDrawPages = (XDrawPages) tEnv.getObjRelation("DrawPages");
if ( oDrawPages == null ) {
// SKIPPED.FAILED - the ObjectRelation is not available
- Status.failed( "ObjectRelation('DrawPages') XDrawPages n.a." );
- return;
+ throw new StatusException(Status.failed( "ObjectRelation('DrawPages') XDrawPages n.a." ));
}
log.println("testing summarize() ... ");
More information about the Libreoffice-commits
mailing list