12#include <com/sun/star/sheet/TableFilterField3.hpp>
13#include <com/sun/star/sheet/XSheetFilterDescriptor3.hpp>
15#include <com/sun/star/uno/Reference.hxx>
16#include <com/sun/star/uno/Sequence.hxx>
18#include <cppunit/TestAssert.h>
21using namespace css::uno;
27 uno::Reference<sheet::XSheetFilterDescriptor3> xSFD(
init(), uno::UNO_QUERY_THROW);
28 uno::Sequence<sheet::TableFilterField3> aDefaultTFF = xSFD->getFilterFields3();
30 CPPUNIT_ASSERT_MESSAGE(
"Unable to get TableFilterField", !aDefaultTFF.hasElements());
32 uno::Sequence<sheet::TableFilterField3> aTFF;
35 xSFD->setFilterFields3(aTFF);
36 uno::Sequence<sheet::TableFilterField3> aNewTFF = xSFD->getFilterFields3();
37 CPPUNIT_ASSERT_MESSAGE(
"Unable to set TableFilterField", aNewTFF != aDefaultTFF);
void testGetSetFilterFields3()
virtual css::uno::Reference< css::uno::XInterface > init()=0