diff options
Diffstat (limited to 'qadevOOo/tests/java/ifc/table/_XTableRows.java')
-rw-r--r-- | qadevOOo/tests/java/ifc/table/_XTableRows.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/qadevOOo/tests/java/ifc/table/_XTableRows.java b/qadevOOo/tests/java/ifc/table/_XTableRows.java index 71cd35ab5de9..ce12e3760ada 100644 --- a/qadevOOo/tests/java/ifc/table/_XTableRows.java +++ b/qadevOOo/tests/java/ifc/table/_XTableRows.java @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -46,7 +46,7 @@ public class _XTableRows extends MultiMethodTest { public XTableRows oObj = null; public XCellRange range = null; - + public void before() { range = (XCellRange) tEnv.getObjRelation("XTableRows.XCellRange"); if (range==null) { @@ -68,14 +68,14 @@ public class _XTableRows extends MultiMethodTest { public void _insertByIndex() { boolean result = true; - + requiredMethod("removeByIndex()"); int origCnt = oObj.getCount(); log.println("Inserting row before first row"); oObj.insertByIndex(0,1); result &= checkCell(1,15); - if (checkCell(1,15)) log.println("... successful"); + if (checkCell(1,15)) log.println("... successful"); try { oObj.insertByIndex(-1,1); @@ -98,12 +98,12 @@ public class _XTableRows extends MultiMethodTest { */ public void _removeByIndex() { - boolean result = true; + boolean result = true; oObj.removeByIndex(0,1); log.println("Removing first row"); result &= checkCell(0,15); - if (checkCell(0,15)) log.println("... successful"); + if (checkCell(0,15)) log.println("... successful"); try { oObj.removeByIndex(-1,1); @@ -116,15 +116,15 @@ public class _XTableRows extends MultiMethodTest { tRes.tested( "removeByIndex()", result ); } // end removeByIndex() - + public boolean checkCell(int row,double expected) { double getting=0; try { getting = range.getCellByPosition(0,row).getValue(); } catch (com.sun.star.lang.IndexOutOfBoundsException e) { log.println("Couldn't set value for Cell A1"); - } - + } + boolean res = (getting==expected); if (!res) { log.println("Expected for row "+row+" was "+expected); |