summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod/_sw/SwXBookmark.java
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/mod/_sw/SwXBookmark.java')
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXBookmark.java11
1 files changed, 3 insertions, 8 deletions
diff --git a/qadevOOo/tests/java/mod/_sw/SwXBookmark.java b/qadevOOo/tests/java/mod/_sw/SwXBookmark.java
index d15058ae2908..c351e76d454a 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXBookmark.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXBookmark.java
@@ -87,14 +87,9 @@ public class SwXBookmark extends TestCase {
XInterface oObj = null;
Object instance = null;
log.println( "creating a test environment" );
- try {
- oObj = SOfficeFactory.createBookmark( xTextDoc );
- SOfficeFactory.insertTextContent( xTextDoc, (XTextContent) oObj );
- instance = SOF.createInstance(xTextDoc,"com.sun.star.text.Bookmark");
- } catch ( com.sun.star.uno.Exception e ) {
- e.printStackTrace( log );
- throw new StatusException( "Couldn't create Bookmark", e );
- }
+ oObj = SOfficeFactory.createBookmark( xTextDoc );
+ SOfficeFactory.insertTextContent( xTextDoc, (XTextContent) oObj );
+ instance = SOF.createInstance(xTextDoc,"com.sun.star.text.Bookmark");
log.println( "creating a new environment for bodytext object" );
TestEnvironment tEnv = new TestEnvironment( oObj );