Kaydet (Commit) e5a50239 authored tarafından Michael Stahl's avatar Michael Stahl

qadevOOo: remove silly exception catching from util.FormTools

What's the point of catching an exception and then continuing onwards in
a unit test?

Change-Id: I100dfcaa9a4fdd5398cf4ac38426ec4397451b8e
üst 0bb8bcf1
...@@ -68,7 +68,9 @@ public class _XControlShape extends MultiMethodTest { ...@@ -68,7 +68,9 @@ public class _XControlShape extends MultiMethodTest {
* <li> <code> getControl() </code> </li> * <li> <code> getControl() </code> </li>
* </ul> * </ul>
*/ */
public void _setControl() { public void _setControl()
throws com.sun.star.uno.Exception
{
requiredMethod("getControl()") ; requiredMethod("getControl()") ;
XInterface oNewControl = FormTools.createControl XInterface oNewControl = FormTools.createControl
......
...@@ -64,7 +64,9 @@ public class _XControlAccess extends MultiMethodTest { ...@@ -64,7 +64,9 @@ public class _XControlAccess extends MultiMethodTest {
* is returned. <p> * is returned. <p>
* @throws StatusException If the relation was not found. * @throws StatusException If the relation was not found.
*/ */
public void _getControl(){ public void _getControl()
throws com.sun.star.uno.Exception
{
boolean bResult = true; boolean bResult = true;
try { try {
XComponent oDoc = (XComponent)tEnv.getObjRelation("DOCUMENT"); XComponent oDoc = (XComponent)tEnv.getObjRelation("DOCUMENT");
......
...@@ -117,7 +117,9 @@ public class OFormsCollection extends TestCase { ...@@ -117,7 +117,9 @@ public class OFormsCollection extends TestCase {
*/ */
@Override @Override
protected TestEnvironment createTestEnvironment(TestParameters Param, protected TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) { PrintWriter log)
throws com.sun.star.uno.Exception
{
XInterface oObj = null; XInterface oObj = null;
XDrawPage oDP = null; XDrawPage oDP = null;
......
...@@ -64,7 +64,9 @@ public class OScrollBarModel extends TestCase { ...@@ -64,7 +64,9 @@ public class OScrollBarModel extends TestCase {
} }
@Override @Override
protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log)
throws com.sun.star.uno.Exception
{
XInterface oObj = null; XInterface oObj = null;
......
...@@ -69,8 +69,9 @@ public class OSpinButtonModel extends TestCase { ...@@ -69,8 +69,9 @@ public class OSpinButtonModel extends TestCase {
* Adds spin button into text and retrieves it's control model. * Adds spin button into text and retrieves it's control model.
*/ */
@Override @Override
protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log)
throws com.sun.star.uno.Exception
{
XInterface oObj = null; XInterface oObj = null;
XControlShape aShape = FormTools.createControlShape( XControlShape aShape = FormTools.createControlShape(
......
...@@ -62,7 +62,9 @@ public class AccessibleControlShape extends TestCase { ...@@ -62,7 +62,9 @@ public class AccessibleControlShape extends TestCase {
@Override @Override
protected TestEnvironment createTestEnvironment protected TestEnvironment createTestEnvironment
(TestParameters tParam, PrintWriter log) { (TestParameters tParam, PrintWriter log)
throws com.sun.star.uno.Exception
{
XInterface oObj = null; XInterface oObj = null;
......
...@@ -116,7 +116,9 @@ public class SwXTextView extends TestCase { ...@@ -116,7 +116,9 @@ public class SwXTextView extends TestCase {
*/ */
@Override @Override
public TestEnvironment createTestEnvironment( TestParameters tParam, public TestEnvironment createTestEnvironment( TestParameters tParam,
PrintWriter log )throws StatusException { PrintWriter log )
throws com.sun.star.uno.Exception
{
// creation of testobject here // creation of testobject here
......
...@@ -59,7 +59,9 @@ public class TabController extends TestCase { ...@@ -59,7 +59,9 @@ public class TabController extends TestCase {
@Override @Override
public TestEnvironment createTestEnvironment(TestParameters param, public TestEnvironment createTestEnvironment(TestParameters param,
PrintWriter log) { PrintWriter log)
throws com.sun.star.uno.Exception
{
XInterface oObj = null; XInterface oObj = null;
XControl xCtrl1 = null; XControl xCtrl1 = null;
XTabControllerModel tabCtrlModel = null; XTabControllerModel tabCtrlModel = null;
...@@ -121,4 +123,4 @@ public class TabController extends TestCase { ...@@ -121,4 +123,4 @@ public class TabController extends TestCase {
return tEnv; return tEnv;
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment