11#include <rtl/ustring.hxx>
13#include <com/sun/star/util/XReplaceDescriptor.hpp>
15#include <com/sun/star/uno/Reference.hxx>
17#include <cppunit/TestAssert.h>
25 uno::Reference<util::XReplaceDescriptor> xRD(
init(), uno::UNO_QUERY_THROW);
26 const OUString aReplaceStringOld = xRD->getReplaceString();
27 CPPUNIT_ASSERT(aReplaceStringOld.isEmpty());
29 xRD->setReplaceString(
"_XReplaceDescriptor");
30 const OUString aReplaceStringNew = xRD->getReplaceString();
31 CPPUNIT_ASSERT_EQUAL(OUString(
"_XReplaceDescriptor"), aReplaceStringNew);
32 CPPUNIT_ASSERT(aReplaceStringOld != aReplaceStringNew);
void testGetSetReplaceString()
virtual css::uno::Reference< css::uno::XInterface > init()=0