diff options
author | Baptiste Lepilleur <gaiacrtn@free.fr> | 2002-06-13 17:17:42 +0000 |
---|---|---|
committer | Baptiste Lepilleur <gaiacrtn@free.fr> | 2002-06-13 17:17:42 +0000 |
commit | 7f0766499db248afe9985a5700c22f9a8ce7ce6c (patch) | |
tree | ba70577fe0ed4343b5127d1e8848cbe0ccebf4fe /examples/cppunittest/XmlUniformiserTest.cpp | |
parent | abd178318ae3cdb6cc0a700e77414a33ef9297ca (diff) | |
download | cppunit-7f0766499db248afe9985a5700c22f9a8ce7ce6c.tar.gz |
Include/cppunit/NotEqualException.
include/cppunit/NotEqualException.h:
* src/cppunit/NotEqualException.cpp: removed.
* include/cppunit/Exception.h:
* src/cppunit/Exception.cpp: removed 'type' related stuffs.
* include/cppunit/TextTestResult.h:
* src/cppunit/TextTestResult.cpp: delegate printing to TextOutputter.
* examples/simple/ExampleTestCase.h:
* examples/simple/ExampleTestCase.cpp: reindented.
* src/qttestrunner/build:
* src/qttestrunner/qttestrunner.pro:
* src/qttestrunner/TestBrowserDlgImpl.h:
* src/qttestrunner/TestRunnerModel.h: applied Thomas Neidhart's patch,
'Some minor fixes to compile QTTestrunner under Linux.'.
Diffstat (limited to 'examples/cppunittest/XmlUniformiserTest.cpp')
-rw-r--r-- | examples/cppunittest/XmlUniformiserTest.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/examples/cppunittest/XmlUniformiserTest.cpp b/examples/cppunittest/XmlUniformiserTest.cpp index 300ca6b..d99b457 100644 --- a/examples/cppunittest/XmlUniformiserTest.cpp +++ b/examples/cppunittest/XmlUniformiserTest.cpp @@ -1,4 +1,3 @@ -#include <cppunit/NotEqualException.h> #include <stdlib.h> #include "UnitTestToolSuite.h" #include "XmlUniformiserTest.h" @@ -129,18 +128,7 @@ XmlUniformiserTest::testSkipComment() void XmlUniformiserTest::testAssertXmlEqualFail() { - try - { - CPPUNITTEST_ASSERT_XML_EQUAL( "<Test>", "<Tes>" ); - CPPUNIT_FAIL( "CppUnit::NotEqualException expected" ); - } - catch ( CppUnit::NotEqualException &e ) - { - CPPUNIT_ASSERT_EQUAL( e.expectedValue(), std::string("<Test>" ) ); - CPPUNIT_ASSERT_EQUAL( e.actualValue(), std::string("<Tes>" ) ); - CPPUNIT_ASSERT( !e.additionalMessage().empty() ); - CPPUNIT_ASSERT( e.sourceLine().isValid() ); - } + CPPUNITTEST_ASSERT_XML_EQUAL( "<Test>", "<Tes>" ); } void |