summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod/_forms/ODateControl.java
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/mod/_forms/ODateControl.java')
-rw-r--r--qadevOOo/tests/java/mod/_forms/ODateControl.java20
1 files changed, 7 insertions, 13 deletions
diff --git a/qadevOOo/tests/java/mod/_forms/ODateControl.java b/qadevOOo/tests/java/mod/_forms/ODateControl.java
index af54d68f7af1..c8a233391919 100644
--- a/qadevOOo/tests/java/mod/_forms/ODateControl.java
+++ b/qadevOOo/tests/java/mod/_forms/ODateControl.java
@@ -156,7 +156,7 @@ public class ODateControl extends TestCase {
*/
@Override
protected TestEnvironment createTestEnvironment(TestParameters Param,
- PrintWriter log) {
+ PrintWriter log) throws Exception {
XInterface oObj = null;
Object anotherCtrl = null;
XWindowPeer the_win = null;
@@ -187,18 +187,12 @@ public class ODateControl extends TestCase {
xTextDoc.getCurrentController());
//now get the ODateControl
- try {
- oObj = the_access.getControl(the_Model);
- anotherCtrl = the_access.getControl(the_Model2);
- the_win = the_access.getControl(the_Model).getPeer();
- the_kit = the_win.getToolkit();
- aDevice = the_kit.createScreenCompatibleDevice(200, 200);
- aGraphic = aDevice.createGraphics();
- } catch (com.sun.star.container.NoSuchElementException e) {
- log.println("Couldn't get ODateControl");
- e.printStackTrace(log);
- throw new StatusException("Couldn't get ODateControl", e);
- }
+ oObj = the_access.getControl(the_Model);
+ anotherCtrl = the_access.getControl(the_Model2);
+ the_win = the_access.getControl(the_Model).getPeer();
+ the_kit = the_win.getToolkit();
+ aDevice = the_kit.createScreenCompatibleDevice(200, 200);
+ aGraphic = aDevice.createGraphics();
log.println("creating a new environment for ODateControl object");