diff options
Diffstat (limited to 'qadevOOo/tests/java/mod/_sw/SwXFootnoteText.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_sw/SwXFootnoteText.java | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/qadevOOo/tests/java/mod/_sw/SwXFootnoteText.java b/qadevOOo/tests/java/mod/_sw/SwXFootnoteText.java index 363a4485877c..5229611d780e 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXFootnoteText.java +++ b/qadevOOo/tests/java/mod/_sw/SwXFootnoteText.java @@ -116,7 +116,7 @@ public class SwXFootnoteText extends TestCase { */ @Override public synchronized TestEnvironment createTestEnvironment( - TestParameters tParam, PrintWriter log ) throws StatusException { + TestParameters tParam, PrintWriter log ) throws Exception { XInterface oObj = null; XFootnote oFootnote; @@ -124,24 +124,14 @@ public class SwXFootnoteText extends TestCase { XMultiServiceFactory msf = UnoRuntime.queryInterface(XMultiServiceFactory.class, xTextDoc); log.println("creating a footnote"); - try { - oFootnote = UnoRuntime.queryInterface(XFootnote.class, - msf.createInstance("com.sun.star.text.Footnote")); - } catch (com.sun.star.uno.Exception e) { - e.printStackTrace(log); - throw new StatusException("Couldn't create footnote", e); - } + oFootnote = UnoRuntime.queryInterface(XFootnote.class, + msf.createInstance("com.sun.star.text.Footnote")); XText oText = xTextDoc.getText(); XTextCursor oCursor = oText.createTextCursor(); log.println("inserting the footnote into text document"); - try { - oText.insertTextContent(oCursor, oFootnote, false); - } catch (com.sun.star.lang.IllegalArgumentException e) { - e.printStackTrace(log); - throw new StatusException("Couldn't insert the footnote", e); - } + oText.insertTextContent(oCursor, oFootnote, false); XSimpleText oFootText = UnoRuntime.queryInterface(XSimpleText.class, oFootnote); oFootText.setString("SwXFootnoteText"); |