diff options
Diffstat (limited to 'qadevOOo/tests/java/mod/_forms/OCurrencyControl.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_forms/OCurrencyControl.java | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/qadevOOo/tests/java/mod/_forms/OCurrencyControl.java b/qadevOOo/tests/java/mod/_forms/OCurrencyControl.java index d0d5dc1e4328..9f3d82843f23 100644 --- a/qadevOOo/tests/java/mod/_forms/OCurrencyControl.java +++ b/qadevOOo/tests/java/mod/_forms/OCurrencyControl.java @@ -160,7 +160,7 @@ public class OCurrencyControl extends TestCase { */ @Override protected TestEnvironment createTestEnvironment(TestParameters Param, - PrintWriter log) { + PrintWriter log) throws Exception { XInterface oObj = null; XWindowPeer the_win = null; XToolkit the_kit = null; @@ -191,18 +191,12 @@ public class OCurrencyControl extends TestCase { xTextDoc.getCurrentController()); //now get the OCurrencyControl - try { - oObj = the_access.getControl(the_Model); - aControl = 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 OCurrencyControl"); - e.printStackTrace(log); - throw new StatusException("Couldn't get OCurrencyControl", e); - } + oObj = the_access.getControl(the_Model); + aControl = 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 OCurrencyControl object"); |