12#include <com/sun/star/container/NoSuchElementException.hpp>
13#include <com/sun/star/container/XEnumeration.hpp>
15#include <com/sun/star/uno/Reference.hxx>
17#include <cppunit/TestAssert.h>
26 uno::Reference<container::XEnumeration> xEnumeration(
init(), uno::UNO_QUERY_THROW);
27 CPPUNIT_ASSERT(xEnumeration->hasMoreElements());
32 uno::Reference<container::XEnumeration> xEnumeration(
init(), uno::UNO_QUERY_THROW);
35 while (xEnumeration->hasMoreElements())
36 CPPUNIT_ASSERT_NO_THROW(xEnumeration->nextElement());
38 CPPUNIT_ASSERT_THROW_MESSAGE(
"Incorrect exception", xEnumeration->nextElement(),
39 container::NoSuchElementException);
void testHasMoreElements()
virtual css::uno::Reference< css::uno::XInterface > init()=0