12#include <com/sun/star/util/XSearchDescriptor.hpp>
14#include <com/sun/star/uno/Reference.hxx>
16#include <cppunit/TestAssert.h>
24 uno::Reference<util::XSearchDescriptor> xDS(
init(), uno::UNO_QUERY_THROW);
25 const OUString aSearchStringOld = xDS->getSearchString();
26 CPPUNIT_ASSERT(aSearchStringOld.isEmpty());
28 xDS->setSearchString(
"_XSearchDescriptor");
29 const OUString aSearchStringNew = xDS->getSearchString();
30 CPPUNIT_ASSERT_EQUAL(OUString(
"_XSearchDescriptor"), aSearchStringNew);
31 CPPUNIT_ASSERT(aSearchStringOld != aSearchStringNew);
virtual css::uno::Reference< css::uno::XInterface > init()=0
void testGetSetSearchString()