summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-05-31 12:25:38 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-05-31 12:28:52 +0200
commit0210ec32f779bb2098657eb4ad69cca7a60835dc (patch)
treeb60a75c1cd212dfc78fc3a3c4c4795ebadcc37b1
parente43966b29cc36ce36245cfb2c63c3e24a0eb523f (diff)
Fix one more test that implicitly assumes more than one Calc sheet
...in the vein of e43966b29cc36ce36245cfb2c63c3e24a0eb523f "Fix up unit tests that assumed two or more sheets per default" Change-Id: I450f561721edeaa6855499d20c2196ceb8d2f546
-rw-r--r--qadevOOo/tests/java/mod/_sc/ScModelObj.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/qadevOOo/tests/java/mod/_sc/ScModelObj.java b/qadevOOo/tests/java/mod/_sc/ScModelObj.java
index 6dd93942ff6b..c18e4531f213 100644
--- a/qadevOOo/tests/java/mod/_sc/ScModelObj.java
+++ b/qadevOOo/tests/java/mod/_sc/ScModelObj.java
@@ -194,6 +194,9 @@ public class ScModelObj extends TestCase {
oSheet.getCellByPosition(5, 5),
oSheet.getCellByPosition(6, 5)
};
+
+ // Make sure there are at least two sheets:
+ oSheets.insertNewByName("Some Sheet", (short) 1);
} catch (com.sun.star.lang.WrappedTargetException e) {
e.printStackTrace(log);
throw new StatusException(