summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/ifc/table
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/ifc/table')
-rw-r--r--qadevOOo/tests/java/ifc/table/_CellProperties.java12
-rw-r--r--qadevOOo/tests/java/ifc/table/_TableColumn.java2
-rw-r--r--qadevOOo/tests/java/ifc/table/_TableRow.java2
-rw-r--r--qadevOOo/tests/java/ifc/table/_XAutoFormattable.java14
-rw-r--r--qadevOOo/tests/java/ifc/table/_XCell.java2
-rw-r--r--qadevOOo/tests/java/ifc/table/_XCellCursor.java2
-rw-r--r--qadevOOo/tests/java/ifc/table/_XCellRange.java6
-rw-r--r--qadevOOo/tests/java/ifc/table/_XColumnRowRange.java2
-rw-r--r--qadevOOo/tests/java/ifc/table/_XTableChart.java2
-rw-r--r--qadevOOo/tests/java/ifc/table/_XTableCharts.java2
-rw-r--r--qadevOOo/tests/java/ifc/table/_XTableChartsSupplier.java2
-rw-r--r--qadevOOo/tests/java/ifc/table/_XTableColumns.java8
-rw-r--r--qadevOOo/tests/java/ifc/table/_XTableRows.java18
13 files changed, 37 insertions, 37 deletions
diff --git a/qadevOOo/tests/java/ifc/table/_CellProperties.java b/qadevOOo/tests/java/ifc/table/_CellProperties.java
index 99990e5b0339..fb50ba9eaac9 100644
--- a/qadevOOo/tests/java/ifc/table/_CellProperties.java
+++ b/qadevOOo/tests/java/ifc/table/_CellProperties.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
@@ -56,7 +56,7 @@ import com.sun.star.xml.AttributeData;
* @see com.sun.star.table.CellProperties
*/
public class _CellProperties extends MultiPropertyTest {
-
+
/**
* This property is tested with custom property tester which
@@ -69,7 +69,7 @@ public class _CellProperties extends MultiPropertyTest {
}
}) ;
}
-
+
public void _UserDefinedAttributes() {
XNameContainer uda = null;
boolean res = false;
@@ -81,8 +81,8 @@ public class _CellProperties extends MultiPropertyTest {
attr.Namespace = "http://www.sun.com/staroffice/apitest/Cellprop";
attr.Type="CDATA";
attr.Value="true";
- uda.insertByName("Cellprop:has-first-alien-attribute",attr);
- String[] els = uda.getElementNames();
+ uda.insertByName("Cellprop:has-first-alien-attribute",attr);
+ String[] els = uda.getElementNames();
oObj.setPropertyValue("UserDefinedAttributes",uda);
uda = (XNameContainer) AnyConverter.toObject(
new Type(XNameContainer.class),
@@ -102,7 +102,7 @@ public class _CellProperties extends MultiPropertyTest {
log.println("PropertyVetoException while getting Property 'UserDefinedAttributes'");
} catch (com.sun.star.container.ElementExistException eee) {
log.println("ElementExistException while getting Property 'UserDefinedAttributes'");
- }
+ }
tRes.tested("UserDefinedAttributes",res);
}
diff --git a/qadevOOo/tests/java/ifc/table/_TableColumn.java b/qadevOOo/tests/java/ifc/table/_TableColumn.java
index edb2606b87a4..417365414a2e 100644
--- a/qadevOOo/tests/java/ifc/table/_TableColumn.java
+++ b/qadevOOo/tests/java/ifc/table/_TableColumn.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
diff --git a/qadevOOo/tests/java/ifc/table/_TableRow.java b/qadevOOo/tests/java/ifc/table/_TableRow.java
index e5021f22dc55..f06fa6b80bac 100644
--- a/qadevOOo/tests/java/ifc/table/_TableRow.java
+++ b/qadevOOo/tests/java/ifc/table/_TableRow.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
diff --git a/qadevOOo/tests/java/ifc/table/_XAutoFormattable.java b/qadevOOo/tests/java/ifc/table/_XAutoFormattable.java
index 4843d25f93fc..edb2ccab1ceb 100644
--- a/qadevOOo/tests/java/ifc/table/_XAutoFormattable.java
+++ b/qadevOOo/tests/java/ifc/table/_XAutoFormattable.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
@@ -75,12 +75,12 @@ public class _XAutoFormattable extends MultiMethodTest {
XCell oCell = cellRange.getCellByPosition(0, 0);
XPropertySet PS = (XPropertySet) UnoRuntime.queryInterface(
XPropertySet.class, oCell);
-
+
Integer bkgrnd1;
try {
bkgrnd1 = (Integer) PS.getPropertyValue("CellBackColor");
} catch (com.sun.star.beans.UnknownPropertyException e) {
- bkgrnd1 = (Integer) PS.getPropertyValue("BackColor");
+ bkgrnd1 = (Integer) PS.getPropertyValue("BackColor");
}
// getting formats names.
@@ -112,8 +112,8 @@ public class _XAutoFormattable extends MultiMethodTest {
try {
bkgrnd2 = (Integer) PS.getPropertyValue("CellBackColor");
} catch (com.sun.star.beans.UnknownPropertyException e) {
- bkgrnd2 = (Integer) PS.getPropertyValue("BackColor");
- }
+ bkgrnd2 = (Integer) PS.getPropertyValue("BackColor");
+ }
bResult &= !bkgrnd1.equals(bkgrnd2);
} catch (com.sun.star.uno.Exception e) {
@@ -124,11 +124,11 @@ public class _XAutoFormattable extends MultiMethodTest {
tRes.tested("autoFormat()", bResult);
}
-
+
/**
* Forces environment recreation.
*/
protected void after() {
disposeEnvironment();
- }
+ }
} \ No newline at end of file
diff --git a/qadevOOo/tests/java/ifc/table/_XCell.java b/qadevOOo/tests/java/ifc/table/_XCell.java
index 0e29e2cbc644..2860ac3ac307 100644
--- a/qadevOOo/tests/java/ifc/table/_XCell.java
+++ b/qadevOOo/tests/java/ifc/table/_XCell.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
diff --git a/qadevOOo/tests/java/ifc/table/_XCellCursor.java b/qadevOOo/tests/java/ifc/table/_XCellCursor.java
index 9f3aea9b4354..aeb52faa6aec 100644
--- a/qadevOOo/tests/java/ifc/table/_XCellCursor.java
+++ b/qadevOOo/tests/java/ifc/table/_XCellCursor.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
diff --git a/qadevOOo/tests/java/ifc/table/_XCellRange.java b/qadevOOo/tests/java/ifc/table/_XCellRange.java
index cb35b2137e6d..53c0a061741d 100644
--- a/qadevOOo/tests/java/ifc/table/_XCellRange.java
+++ b/qadevOOo/tests/java/ifc/table/_XCellRange.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
@@ -139,13 +139,13 @@ public class _XCellRange extends MultiMethodTest {
} // end getCellRangeByPosition()
-
+
/**
* Forces environment recreation.
*/
protected void after() {
disposeEnvironment();
- }
+ }
} // finish class _XCellRange
diff --git a/qadevOOo/tests/java/ifc/table/_XColumnRowRange.java b/qadevOOo/tests/java/ifc/table/_XColumnRowRange.java
index f56899891353..14aa660a5d39 100644
--- a/qadevOOo/tests/java/ifc/table/_XColumnRowRange.java
+++ b/qadevOOo/tests/java/ifc/table/_XColumnRowRange.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
diff --git a/qadevOOo/tests/java/ifc/table/_XTableChart.java b/qadevOOo/tests/java/ifc/table/_XTableChart.java
index 230c0f5b0949..5bd42039a3d8 100644
--- a/qadevOOo/tests/java/ifc/table/_XTableChart.java
+++ b/qadevOOo/tests/java/ifc/table/_XTableChart.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
diff --git a/qadevOOo/tests/java/ifc/table/_XTableCharts.java b/qadevOOo/tests/java/ifc/table/_XTableCharts.java
index 737a120f91a8..9df026ddb7d2 100644
--- a/qadevOOo/tests/java/ifc/table/_XTableCharts.java
+++ b/qadevOOo/tests/java/ifc/table/_XTableCharts.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
diff --git a/qadevOOo/tests/java/ifc/table/_XTableChartsSupplier.java b/qadevOOo/tests/java/ifc/table/_XTableChartsSupplier.java
index ba0308da29f2..19d310da232e 100644
--- a/qadevOOo/tests/java/ifc/table/_XTableChartsSupplier.java
+++ b/qadevOOo/tests/java/ifc/table/_XTableChartsSupplier.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
diff --git a/qadevOOo/tests/java/ifc/table/_XTableColumns.java b/qadevOOo/tests/java/ifc/table/_XTableColumns.java
index d46ae6dae70e..cf3c36baba8f 100644
--- a/qadevOOo/tests/java/ifc/table/_XTableColumns.java
+++ b/qadevOOo/tests/java/ifc/table/_XTableColumns.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
@@ -180,8 +180,8 @@ public class _XTableColumns extends MultiMethodTest {
log.println("Inserting column at Index " + cnt + " ... OK");
result &= true;
}
-
- if (tEnv.getTestCase().getObjectName().equals("ScTableColumnsObj")) {
+
+ if (tEnv.getTestCase().getObjectName().equals("ScTableColumnsObj")) {
try {
oObj.insertByIndex(0,0);
@@ -191,7 +191,7 @@ public class _XTableColumns extends MultiMethodTest {
log.println("Inserting 0 columns ... OK");
result &= true;
}
-
+
}
tRes.tested( "insertByIndex()", result );
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);