diff options
Diffstat (limited to 'qadevOOo/tests/java/mod/_fwk/Desktop.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_fwk/Desktop.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/qadevOOo/tests/java/mod/_fwk/Desktop.java b/qadevOOo/tests/java/mod/_fwk/Desktop.java index f97d440b1588..35fd5183d6e7 100644 --- a/qadevOOo/tests/java/mod/_fwk/Desktop.java +++ b/qadevOOo/tests/java/mod/_fwk/Desktop.java @@ -100,9 +100,7 @@ public class Desktop extends TestCase { log.println( "creating a text document" ); xTextDoc = SOF.createTextDoc(null); } catch ( com.sun.star.uno.Exception e ) { - // Some exception occurs.FAILED - e.printStackTrace( log ); - throw new StatusException( "Couldn't create document", e ); + throw new StatusException("Couldn't create document", e); } XInterface oObj = null; @@ -111,9 +109,7 @@ public class Desktop extends TestCase { oObj = (XInterface)Param.getMSF().createInstance( "com.sun.star.comp.framework.Desktop"); } catch(com.sun.star.uno.Exception e) { - e.printStackTrace(log); - throw new StatusException( - Status.failed("Couldn't create instance")); + throw new StatusException(e, Status.failed("Couldn't create instance")); } TestEnvironment tEnv = new TestEnvironment( oObj ); |