diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2016-09-23 10:47:25 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2016-09-23 10:49:18 +0000 |
commit | b316edff1ba12529c23683c50a077e349d084f56 (patch) | |
tree | 4df5539763852fb4eff4226570b22f6b730242dd /qadevOOo | |
parent | 463843656731758f7e9292c03ab85b302e4bba0d (diff) |
Handle exception
Change-Id: If295d9a6106c0d03313c80464134e060da72bf53
Reviewed-on: https://gerrit.libreoffice.org/29224
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'qadevOOo')
-rw-r--r-- | qadevOOo/qa/unoapi/Test.java | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/qadevOOo/qa/unoapi/Test.java b/qadevOOo/qa/unoapi/Test.java index cecd71c797c2..e6b8120dbdf7 100644 --- a/qadevOOo/qa/unoapi/Test.java +++ b/qadevOOo/qa/unoapi/Test.java @@ -34,10 +34,14 @@ public final class Test { } @org.junit.Test public void test() { - assertTrue( - Runner.run( - "-sce", "qadevOOo.sce", "-xcl", "knownissues.xcl", "-cs", - connection.getDescription())); + try { + assertTrue( + Runner.run( + "-sce", "qadevOOo.sce", "-xcl", "knownissues.xcl", "-cs", + connection.getDescription())); + } catch (Exception e) { + fail("Could not run test"); + } } private final OfficeConnection connection = new OfficeConnection(); |