summaryrefslogtreecommitdiff
path: root/sc/qa/complex/dataPilot
diff options
context:
space:
mode:
authorStefan Knorr (astron) <heinzlesspam@gmail.com>2012-05-30 14:58:27 +0200
committerJan Holesovsky <kendy@suse.cz>2012-05-31 11:05:27 +0200
commite43966b29cc36ce36245cfb2c63c3e24a0eb523f (patch)
treeaa296d630672782d2212ba35c96567f838eb18c3 /sc/qa/complex/dataPilot
parent7e7d0f41a53471caac4cd155642b01aa54a5869d (diff)
Fix up unit tests that assumed two or more sheets per default
Diffstat (limited to 'sc/qa/complex/dataPilot')
-rw-r--r--sc/qa/complex/dataPilot/CheckDataPilot.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/qa/complex/dataPilot/CheckDataPilot.java b/sc/qa/complex/dataPilot/CheckDataPilot.java
index b042f259072e..45ae37311f78 100644
--- a/sc/qa/complex/dataPilot/CheckDataPilot.java
+++ b/sc/qa/complex/dataPilot/CheckDataPilot.java
@@ -211,6 +211,9 @@ public class CheckDataPilot {
XIndexAccess oIndexAccess =
UnoRuntime.queryInterface(XIndexAccess.class, xSpreadsheets);
+ // Per default there's now just one sheet, make sure we have at least two, then
+ xSpreadsheets.insertNewByName("Some Sheet", (short)0);
+
try {
oSheet = (XSpreadsheet) AnyConverter.toObject(
new Type(XSpreadsheet.class),oIndexAccess.getByIndex(0));