summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/modules/atom/atom-test.cpp
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2009-11-23 05:25:33 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2009-11-23 05:25:33 +0000
commit585f81b9436e137c3ed784d9a91efa9e6e792e03 (patch)
treef40f0179601320ace0b454698dc76aaeddfc6a5d /sca-cpp/trunk/modules/atom/atom-test.cpp
parent3c6b7d709c7197078f8261f8e3464b0f217c988e (diff)
Refactored httpd server integration, split http support and server logic in two modules. Added functions to load component implementations packaged as dynamic libraries. Minor monad code cleanup, converted cast operators to separate functions.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@883249 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/modules/atom/atom-test.cpp')
-rw-r--r--sca-cpp/trunk/modules/atom/atom-test.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/sca-cpp/trunk/modules/atom/atom-test.cpp b/sca-cpp/trunk/modules/atom/atom-test.cpp
index 7c14b954a0..ba651e8eb2 100644
--- a/sca-cpp/trunk/modules/atom/atom-test.cpp
+++ b/sca-cpp/trunk/modules/atom/atom-test.cpp
@@ -82,13 +82,13 @@ bool testEntry() {
assert(os.str() == itemEntry);
}
{
- const list<value> a = readEntry(mklist(itemEntry));
+ const list<value> a = content(readEntry(mklist(itemEntry)));
std::ostringstream os;
writeATOMEntry<std::ostringstream*>(writer, &os, a);
assert(os.str() == itemEntry);
}
{
- const list<value> a = readEntry(mklist(incompleteEntry));
+ const list<value> a = content(readEntry(mklist(incompleteEntry)));
std::ostringstream os;
writeATOMEntry<std::ostringstream*>(writer, &os, a);
assert(os.str() == completedEntry);
@@ -135,7 +135,7 @@ bool testFeed() {
assert(os.str() == emptyFeed);
}
{
- const list<value> a = readFeed(mklist(emptyFeed));
+ const list<value> a = content(readFeed(mklist(emptyFeed)));
std::ostringstream os;
writeATOMFeed<std::ostringstream*>(writer, &os, a);
assert(os.str() == emptyFeed);
@@ -171,7 +171,7 @@ bool testFeed() {
assert(os.str() == itemFeed);
}
{
- const list<value> a = readFeed(mklist(itemFeed));
+ const list<value> a = content(readFeed(mklist(itemFeed)));
std::ostringstream os;
writeATOMFeed<std::ostringstream*>(writer, &os, a);
assert(os.str() == itemFeed);