summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-02-16 00:52:44 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-02-16 00:55:18 +0100
commita5661d717197a6723b80fb65cde463c479983934 (patch)
treee069487db2808e4bbc4147b3ffe69c97b549c8d1 /test
parent1263cafe8e487b5db0c439966056516be99bc1e4 (diff)
add two more test cases to XDatabaseRange
Diffstat (limited to 'test')
-rw-r--r--test/inc/test/sheet/xdatabaserange.hxx2
-rw-r--r--test/source/sheet/xdatabaserange.cxx13
2 files changed, 15 insertions, 0 deletions
diff --git a/test/inc/test/sheet/xdatabaserange.hxx b/test/inc/test/sheet/xdatabaserange.hxx
index 6c5eac04d977..d388aa3d995a 100644
--- a/test/inc/test/sheet/xdatabaserange.hxx
+++ b/test/inc/test/sheet/xdatabaserange.hxx
@@ -43,6 +43,8 @@ public:
void testDataArea();
void testGetSortDescriptor();
void testGetSubtotalDescriptor();
+ void testGetImportDescriptor();
+ void testGetFilterDescriptor();
};
}
diff --git a/test/source/sheet/xdatabaserange.cxx b/test/source/sheet/xdatabaserange.cxx
index ef68e8e55235..51e3c3258840 100644
--- a/test/source/sheet/xdatabaserange.cxx
+++ b/test/source/sheet/xdatabaserange.cxx
@@ -140,6 +140,19 @@ void XDatabaseRange::testGetSortDescriptor()
}
}
+void XDatabaseRange::testGetFilterDescriptor()
+{
+ uno::Reference< sheet::XDatabaseRange > xDBRange( init(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("FilterDescriptor"))), UNO_QUERY_THROW);
+ uno::Reference< uno::XInterface > xFilterDescr( xDBRange->getFilterDescriptor(), UNO_QUERY_THROW);
+ CPPUNIT_ASSERT(xFilterDescr.is());
+}
+
+void XDatabaseRange::testGetImportDescriptor()
+{
+ uno::Reference< sheet::XDatabaseRange > xDBRange( init(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ImportDescriptor"))), UNO_QUERY_THROW);
+ uno::Sequence< beans::PropertyValue > xImportDescr = xDBRange->getImportDescriptor();
+}
+
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */