junit: add 'r' to creating, and better exception descriptions.

This commit is contained in:
Michael Meeks 2013-09-30 15:28:17 +01:00
parent a9cf50c24d
commit 32e0f451d6
5 changed files with 15 additions and 15 deletions

View File

@ -136,19 +136,19 @@ public class ScAccessibleCell extends TestCase {
XPropertySet.class,oIndexAccess.getByIndex(1)); XPropertySet.class,oIndexAccess.getByIndex(1));
column.setPropertyValue("OptimalWidth", new Boolean(true)); column.setPropertyValue("OptimalWidth", new Boolean(true));
} catch(com.sun.star.lang.WrappedTargetException e) { } catch(com.sun.star.lang.WrappedTargetException e) {
log.println("Exception ceating relation :"); log.println("Exception creating relation :");
e.printStackTrace(log); e.printStackTrace(log);
} catch(com.sun.star.lang.IndexOutOfBoundsException e) { } catch(com.sun.star.lang.IndexOutOfBoundsException e) {
log.println("Exception ceating relation :"); log.println("Exception creating relation :");
e.printStackTrace(log); e.printStackTrace(log);
} catch(com.sun.star.beans.UnknownPropertyException e) { } catch(com.sun.star.beans.UnknownPropertyException e) {
log.println("Exception ceating relation :"); log.println("Exception creating relation :");
e.printStackTrace(log); e.printStackTrace(log);
} catch(com.sun.star.beans.PropertyVetoException e) { } catch(com.sun.star.beans.PropertyVetoException e) {
log.println("Exception ceating relation :"); log.println("Exception creating relation :");
e.printStackTrace(log); e.printStackTrace(log);
} catch(com.sun.star.lang.IllegalArgumentException e) { } catch(com.sun.star.lang.IllegalArgumentException e) {
log.println("Exception ceating relation :"); log.println("Exception creating relation :");
e.printStackTrace(log); e.printStackTrace(log);
} }

View File

@ -120,10 +120,10 @@ public class ScAccessibleDocumentPagePreview extends TestCase {
xCell = oSheet.getCellByPosition(0, 0) ; xCell = oSheet.getCellByPosition(0, 0) ;
xCell.setFormula("ScAccessibleDocumentPagePreview"); xCell.setFormula("ScAccessibleDocumentPagePreview");
} catch(com.sun.star.lang.WrappedTargetException e) { } catch(com.sun.star.lang.WrappedTargetException e) {
log.println("Exception ceating relation :"); log.println("Exception creating document page preview :");
e.printStackTrace(log); e.printStackTrace(log);
} catch(com.sun.star.lang.IndexOutOfBoundsException e) { } catch(com.sun.star.lang.IndexOutOfBoundsException e) {
log.println("Exception ceating relation :"); log.println("Exception creating document page preview :");
e.printStackTrace(log); e.printStackTrace(log);
} }

View File

@ -105,10 +105,10 @@ public class ScAccessiblePageHeader extends TestCase {
xCell = oSheet.getCellByPosition(0, 0) ; xCell = oSheet.getCellByPosition(0, 0) ;
xCell.setFormula("ScAccessiblePageHeader"); xCell.setFormula("ScAccessiblePageHeader");
} catch(com.sun.star.lang.WrappedTargetException e) { } catch(com.sun.star.lang.WrappedTargetException e) {
log.println("Exception ceating relation :"); log.println("Exception creating page header :");
e.printStackTrace(log); e.printStackTrace(log);
} catch(com.sun.star.lang.IndexOutOfBoundsException e) { } catch(com.sun.star.lang.IndexOutOfBoundsException e) {
log.println("Exception ceating relation :"); log.println("Exception creating page header :");
e.printStackTrace(log); e.printStackTrace(log);
} }

View File

@ -99,13 +99,13 @@ public class ScAccessiblePageHeaderArea extends TestCase {
xCell = oSheet.getCellByPosition(0, 0) ; xCell = oSheet.getCellByPosition(0, 0) ;
xCell.setFormula("ScAccessiblePageHeaderArea"); xCell.setFormula("ScAccessiblePageHeaderArea");
} catch(com.sun.star.lang.WrappedTargetException e) { } catch(com.sun.star.lang.WrappedTargetException e) {
log.println("Exception ceating relation :"); log.println("Exception creating page header area :");
e.printStackTrace(log); e.printStackTrace(log);
} catch(com.sun.star.lang.IndexOutOfBoundsException e) { } catch(com.sun.star.lang.IndexOutOfBoundsException e) {
log.println("Exception ceating relation :"); log.println("Exception creating page header area :");
e.printStackTrace(log); e.printStackTrace(log);
} catch(com.sun.star.lang.IllegalArgumentException e) { } catch(com.sun.star.lang.IllegalArgumentException e) {
log.println("Exception ceating relation :"); log.println("Exception creating page header area :");
e.printStackTrace(log); e.printStackTrace(log);
} }

View File

@ -129,13 +129,13 @@ public class ScAccessibleSpreadsheet extends TestCase {
xCell = oSheet.getCellByPosition(5, 5) ; xCell = oSheet.getCellByPosition(5, 5) ;
xCell.setFormula(text); xCell.setFormula(text);
} catch(com.sun.star.lang.WrappedTargetException e) { } catch(com.sun.star.lang.WrappedTargetException e) {
log.println("Exception ceating relation :"); log.println("Exception creating accessible text :");
e.printStackTrace(log); e.printStackTrace(log);
} catch(com.sun.star.lang.IndexOutOfBoundsException e) { } catch(com.sun.star.lang.IndexOutOfBoundsException e) {
log.println("Exception ceating relation :"); log.println("Exception creating accessible text :");
e.printStackTrace(log); e.printStackTrace(log);
} catch(com.sun.star.lang.IllegalArgumentException e) { } catch(com.sun.star.lang.IllegalArgumentException e) {
log.println("Exception ceating relation :"); log.println("Exception creating accessible text :");
e.printStackTrace(log); e.printStackTrace(log);
} }