|
From: <vac...@us...> - 2010-04-10 08:39:22
|
Revision: 179
http://xmlwrapp.svn.sourceforge.net/xmlwrapp/?rev=179&view=rev
Author: vaclavslavik
Date: 2010-04-10 08:39:16 +0000 (Sat, 10 Apr 2010)
Log Message:
-----------
Test that xml::exception is thrown, not just any std::exception.
Modified Paths:
--------------
trunk/tests/document/test_document.cxx
trunk/tests/tree/test_tree.cxx
trunk/tests/xslt/test_xslt.cxx
Modified: trunk/tests/document/test_document.cxx
===================================================================
--- trunk/tests/document/test_document.cxx 2010-03-17 12:26:33 UTC (rev 178)
+++ trunk/tests/document/test_document.cxx 2010-04-10 08:39:16 UTC (rev 179)
@@ -305,19 +305,19 @@
BOOST_CHECK_THROW
(
doc.push_back(xml::node("noway")),
- std::exception
+ xml::exception
);
BOOST_CHECK_THROW
(
doc.insert(xml::node("noway")),
- std::exception
+ xml::exception
);
BOOST_CHECK_THROW
(
doc.insert(doc.end(), xml::node("noway")),
- std::exception
+ xml::exception
);
}
@@ -349,13 +349,13 @@
BOOST_CHECK_THROW
(
doc.replace(n, xml::node("noway")),
- std::exception
+ xml::exception
);
BOOST_CHECK_THROW
(
doc.replace(doc.begin(), xml::node(xml::node::comment(" no way "))),
- std::exception
+ xml::exception
);
}
@@ -388,7 +388,7 @@
BOOST_CHECK_THROW
(
doc.erase(doc.begin(), doc.end()),
- std::exception
+ xml::exception
);
}
Modified: trunk/tests/tree/test_tree.cxx
===================================================================
--- trunk/tests/tree/test_tree.cxx 2010-03-17 12:26:33 UTC (rev 178)
+++ trunk/tests/tree/test_tree.cxx 2010-04-10 08:39:16 UTC (rev 179)
@@ -108,7 +108,7 @@
BOOST_CHECK_THROW
(
xml::tree_parser parser(test_file_path("tree/data/bad.xml").c_str()),
- std::exception
+ xml::exception
);
}
@@ -135,7 +135,7 @@
BOOST_CHECK_THROW
(
xml::tree_parser parser(XMLDATA_BAD.c_str(), XMLDATA_BAD.size()),
- std::exception
+ xml::exception
);
}
@@ -203,7 +203,7 @@
BOOST_CHECK_THROW
(
xml::tree_parser parser( XMLDATA_BAD_NS.c_str(), XMLDATA_BAD_NS.size()),
- std::exception
+ xml::exception
);
}
Modified: trunk/tests/xslt/test_xslt.cxx
===================================================================
--- trunk/tests/xslt/test_xslt.cxx 2010-03-17 12:26:33 UTC (rev 178)
+++ trunk/tests/xslt/test_xslt.cxx 2010-04-10 08:39:16 UTC (rev 179)
@@ -47,7 +47,7 @@
BOOST_CHECK_THROW
(
xslt::stylesheet style1(test_file_path("xslt/data/01a.xsl").c_str()),
- std::exception
+ xml::exception
);
}
@@ -61,7 +61,7 @@
BOOST_CHECK_THROW
(
xslt::stylesheet style1(test_file_path("xslt/data/01c.xsl").c_str()),
- std::exception
+ xml::exception
);
}
@@ -152,7 +152,7 @@
BOOST_CHECK_THROW
(
style.apply(parser.get_document()),
- std::exception
+ xml::exception
);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|