diff options
Diffstat (limited to 'sax/qa/cppunit/parser.cxx')
-rw-r--r-- | sax/qa/cppunit/parser.cxx | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/sax/qa/cppunit/parser.cxx b/sax/qa/cppunit/parser.cxx index e17538f707f4..5381f36e060d 100644 --- a/sax/qa/cppunit/parser.cxx +++ b/sax/qa/cppunit/parser.cxx @@ -92,16 +92,7 @@ void ParserTest::parse() mxParser->parseStream( maInput ); maInput.aInputStream = createStream("<b></a>"); - bool bException = false; - try - { - mxParser->parseStream( maInput ); - } - catch (const SAXParseException &) - { - bException = true; - } - CPPUNIT_ASSERT_MESSAGE("No Exception!", bException); + CPPUNIT_ASSERT_THROW( mxParser->parseStream( maInput ), css::xml::sax::SAXParseException ); } CPPUNIT_TEST_SUITE_REGISTRATION(ParserTest); |