projects
/
shibboleth
/
cpp-opensaml.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0f1fed3
)
Add overloaded assertEquals() for testing XMLCh* string equality.
author
Brent Putman
<putmanb@georgetown.edu>
Thu, 29 Jun 2006 16:20:13 +0000
(16:20 +0000)
committer
Brent Putman
<putmanb@georgetown.edu>
Thu, 29 Jun 2006 16:20:13 +0000
(16:20 +0000)
samltest/internal.h
patch
|
blob
|
history
diff --git
a/samltest/internal.h
b/samltest/internal.h
index
84cbd20
..
664ab40
100644
(file)
--- a/
samltest/internal.h
+++ b/
samltest/internal.h
@@
-88,6
+88,19
@@
protected:
delete xmlObject;
}
delete xmlObject;
}
+ void assertEquals(const char* failMessage, const XMLCh* expectedString, const XMLCh* testString) {
+ char* buf = NULL;
+ if (!XMLString::equals(expectedString, testString)) {
+ buf = XMLString::transcode(testString);
+ TS_TRACE(buf);
+ XMLString::release(&buf);
+ buf = XMLString::transcode(expectedString);
+ TS_TRACE(buf);
+ XMLString::release(&buf);
+ TSM_ASSERT(failMessage, false);
+ }
+ }
+
public:
void setUp() {
ParserPool& p=XMLToolingConfig::getConfig().getParser();
public:
void setUp() {
ParserPool& p=XMLToolingConfig::getConfig().getParser();