summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2008-01-14 12:23:07 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2008-01-14 12:23:07 +0000
commit790faba52fe1cbcb552b38fc67696563e5cb0394 (patch)
treeb5850c8abbdbc31569a1274d9dabff76f7fae46d
parentcdcd24c6966f80eb4f23f0a9f4dc29d78295158c (diff)
INTEGRATION: CWS qadev31 (1.4.46); FILE MERGED
2007/11/16 15:50:34 cn 1.4.46.2: #i83329# add LoggingThread to avoid assumption of death office wihle running long time functions 2007/11/08 10:20:55 cn 1.4.46.1: #i83329# the method tests take a long long time on sheet docs. To avoid time out issues a logging thread is omplementet
-rw-r--r--qadevOOo/tests/java/ifc/sheet/_XCellSeries.java23
1 files changed, 20 insertions, 3 deletions
diff --git a/qadevOOo/tests/java/ifc/sheet/_XCellSeries.java b/qadevOOo/tests/java/ifc/sheet/_XCellSeries.java
index c2de21a01891..431cbcd6c9c1 100644
--- a/qadevOOo/tests/java/ifc/sheet/_XCellSeries.java
+++ b/qadevOOo/tests/java/ifc/sheet/_XCellSeries.java
@@ -4,9 +4,9 @@
*
* $RCSfile: _XCellSeries.java,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: rt $ $Date: 2005-09-09 00:44:37 $
+ * last change: $Author: ihi $ $Date: 2008-01-14 13:23:07 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -34,6 +34,7 @@
************************************************************************/
package ifc.sheet;
+import helper.LoggingThread;
import lib.MultiMethodTest;
import lib.Status;
import lib.StatusException;
@@ -41,6 +42,7 @@ import lib.StatusException;
import com.sun.star.sheet.XCellSeries;
import com.sun.star.sheet.XSpreadsheet;
import com.sun.star.uno.UnoRuntime;
+import share.LogWriter;
public class _XCellSeries extends MultiMethodTest {
@@ -161,6 +163,9 @@ public class _XCellSeries extends MultiMethodTest {
res &= locres;
+ LoggingThread logger = new LoggingThread((LogWriter)log, tParam);
+ logger.start();
+
log.println(
"calling oObj.fillSeries(com.sun.star.sheet.FillDirection.TO_RIGHT, com.sun.star.sheet.FillMode.GROWTH, com.sun.star.sheet.FillDateMode.FILL_DATE_DAY, 2, 16)");
oObj.fillSeries(com.sun.star.sheet.FillDirection.TO_RIGHT,
@@ -171,6 +176,8 @@ public class _XCellSeries extends MultiMethodTest {
getting = oSheet.getCellByPosition(0, 4).getValue();
locres = (getting == 30);
+ logger.finish();
+
if (!locres) {
log.println("Operation failed");
} else {
@@ -179,6 +186,9 @@ public class _XCellSeries extends MultiMethodTest {
res &= locres;
+ logger = new LoggingThread((LogWriter)log, tParam);
+ logger.start();
+
log.println(
"calling oObj.fillSeries(com.sun.star.sheet.FillDirection.TO_BOTTOM, com.sun.star.sheet.FillMode.LINEAR, com.sun.star.sheet.FillDateMode.FILL_DATE_DAY, 2, 8)");
oObj.fillSeries(com.sun.star.sheet.FillDirection.TO_BOTTOM,
@@ -188,6 +198,8 @@ public class _XCellSeries extends MultiMethodTest {
getting = oSheet.getCellByPosition(4, 0).getValue();
locres = (getting == 20);
+ logger.finish();
+
if (!locres) {
log.println("Operation failed");
} else {
@@ -196,6 +208,9 @@ public class _XCellSeries extends MultiMethodTest {
res &= locres;
+ logger = new LoggingThread((LogWriter)log, tParam);
+ logger.start();
+
log.println(
"calling oObj.fillSeries(com.sun.star.sheet.FillDirection.TO_BOTTOM, com.sun.star.sheet.FillMode.GROWTH, com.sun.star.sheet.FillDateMode.FILL_DATE_DAY, 2, 16)");
oObj.fillSeries(com.sun.star.sheet.FillDirection.TO_BOTTOM,
@@ -206,6 +221,8 @@ public class _XCellSeries extends MultiMethodTest {
getting = oSheet.getCellByPosition(4, 0).getValue();
locres = (getting == 30);
+ logger.finish();
+
if (!locres) {
log.println("Operation failed");
} else {
@@ -224,7 +241,7 @@ public class _XCellSeries extends MultiMethodTest {
/**
* Forces environment recreation.
*/
- protected void after() {
+ public void after() {
disposeEnvironment();
}
} \ No newline at end of file