[cpp-xmltooling] branch master updated: Tests should ensure default XMLObjectBuilder is registered.

Scott Cantor cantor.2 at osu.edu
Tue Nov 13 10:44:18 EST 2018


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch master
in repository cpp-xmltooling.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-xmltooling.git;a=commit;h=a0ec4aace510a935f08f3b8391f3f7ead9b95b03

The following commit(s) were added to refs/heads/master by this push:
       new  a0ec4aa   Tests should ensure default XMLObjectBuilder is registered.
a0ec4aa is described below

commit a0ec4aace510a935f08f3b8391f3f7ead9b95b03
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Nov 13 10:44:13 2018 -0500

    Tests should ensure default XMLObjectBuilder is registered.
---
 xmltoolingtest/BadKeyInfoTest.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/xmltoolingtest/BadKeyInfoTest.h b/xmltoolingtest/BadKeyInfoTest.h
index 5dea2ef..ff19970 100644
--- a/xmltoolingtest/BadKeyInfoTest.h
+++ b/xmltoolingtest/BadKeyInfoTest.h
@@ -84,6 +84,8 @@ public:
     }
 
     void setUp() {
+        XMLObjectBuilder::registerDefaultBuilder(new UnknownElementBuilder());
+
         m_keyInfoPath = data_path + "BadKeyInfo/";
         m_resolver = getResolver("InlineKeyResolver.xml");
 
@@ -135,10 +137,11 @@ public:
         delete m_resolver;
         m_resolver = nullptr;
 
-
         xmltooling::QName qname(SimpleXMLObject::NAMESPACE, SimpleXMLObject::LOCAL_NAME);
         xmltooling::QName qtype(SimpleXMLObject::NAMESPACE, SimpleXMLObject::TYPE_NAME);
         XMLObjectBuilder::deregisterBuilder(qname);
+
+        XMLObjectBuilder::deregisterDefaultBuilder();
     }
 
 private:

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list