12#include <com/sun/star/container/XChild.hpp>
13#include <com/sun/star/uno/XInterface.hpp>
15#include <com/sun/star/uno/Reference.hxx>
17#include <cppunit/TestAssert.h>
26 uno::Reference<container::XChild> xChild(
init(), UNO_QUERY_THROW);
27 uno::Reference<uno::XInterface> xInterface(xChild, UNO_QUERY_THROW);
28 xInterface = xChild->getParent();
30 CPPUNIT_ASSERT_MESSAGE(
"Successfully able to Get Parent", xInterface);
32 xChild->setParent(xInterface);
34 CPPUNIT_ASSERT_MESSAGE(
"Successfully able to Set Parent", xChild);
virtual css::uno::Reference< css::uno::XInterface > init()=0