diff options
Diffstat (limited to 'qadevOOo/tests/java/mod/_forms/OListBoxControl.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_forms/OListBoxControl.java | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/qadevOOo/tests/java/mod/_forms/OListBoxControl.java b/qadevOOo/tests/java/mod/_forms/OListBoxControl.java index c0862484ba58..cd422b7fbf09 100644 --- a/qadevOOo/tests/java/mod/_forms/OListBoxControl.java +++ b/qadevOOo/tests/java/mod/_forms/OListBoxControl.java @@ -76,7 +76,7 @@ public class OListBoxControl extends TestCase { } @Override - protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) throws Exception { XInterface oObj = null; Object anotherCtrl = null ; XWindowPeer the_win = null; @@ -103,18 +103,12 @@ public class OListBoxControl extends TestCase { XControlAccess.class,xTextDoc.getCurrentController()); //now get the OListBoxControl - 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 (Exception e) { - log.println("Couldn't get OListBoxControl"); - e.printStackTrace(log); - throw new StatusException("Couldn't get OListBoxControl", 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 OListBoxControl object" ); TestEnvironment tEnv = new TestEnvironment( oObj ); |