summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod/_svx/AccessiblePresentationGraphicShape.java
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-06-09 08:52:12 +0200
committerNoel Grandin <noel@peralex.com>2015-06-09 11:34:31 +0200
commit2a0dda3dfb37f0cb69842f7d569c253d82f53713 (patch)
tree7a762c2fa22651cefb68021250a3fad8811e0f06 /qadevOOo/tests/java/mod/_svx/AccessiblePresentationGraphicShape.java
parent60f8dd78fa3f19e8bed867f7f5926fcf9a8d8e67 (diff)
remove some unnecessary exception wrapping in the Java tests
Modify createTestEnvironment so that it throws Exception. This is appropriate for unit testing. The wrapping adds no value and the calling method already has a catch(Exception) to handle anything. Change-Id: I430a414f63d2cbfc3b65ecfde0285509265e5192
Diffstat (limited to 'qadevOOo/tests/java/mod/_svx/AccessiblePresentationGraphicShape.java')
-rw-r--r--qadevOOo/tests/java/mod/_svx/AccessiblePresentationGraphicShape.java12
1 files changed, 4 insertions, 8 deletions
diff --git a/qadevOOo/tests/java/mod/_svx/AccessiblePresentationGraphicShape.java b/qadevOOo/tests/java/mod/_svx/AccessiblePresentationGraphicShape.java
index f0aec37e2538..8e526a6b0f25 100644
--- a/qadevOOo/tests/java/mod/_svx/AccessiblePresentationGraphicShape.java
+++ b/qadevOOo/tests/java/mod/_svx/AccessiblePresentationGraphicShape.java
@@ -74,7 +74,7 @@ public class AccessiblePresentationGraphicShape extends TestCase {
@Override
protected TestEnvironment createTestEnvironment
- (TestParameters tParam, PrintWriter log) {
+ (TestParameters tParam, PrintWriter log) throws Exception {
XInterface oObj = null;
XShape oShape = null;
@@ -84,13 +84,9 @@ public class AccessiblePresentationGraphicShape extends TestCase {
log.println( "creating a test environment" );
XMultiServiceFactory docMSF = UnoRuntime.queryInterface(XMultiServiceFactory.class, xDoc);
- try {
- oShape = UnoRuntime.queryInterface(XShape.class,
- docMSF.createInstance
- ("com.sun.star.presentation.GraphicObjectShape"));
- } catch (com.sun.star.uno.Exception e) {
- throw new StatusException("couldn't create component", e);
- }
+ oShape = UnoRuntime.queryInterface(XShape.class,
+ docMSF.createInstance
+ ("com.sun.star.presentation.GraphicObjectShape"));
DrawTools.getShapes(DrawTools.getDrawPage(xDoc,0)).add(oShape);