diff options
Diffstat (limited to 'project2/ice/unittests/testClient.cpp')
-rw-r--r-- | project2/ice/unittests/testClient.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/project2/ice/unittests/testClient.cpp b/project2/ice/unittests/testClient.cpp index ee87f1b..bade1b2 100644 --- a/project2/ice/unittests/testClient.cpp +++ b/project2/ice/unittests/testClient.cpp @@ -26,14 +26,21 @@ class Dummy : public UnitTest::SimpleInterface { UnitTest::Simples SomeRows(const Ice::Current&) { - UnitTest::Simples rtn; + UnitTest::Simples rtn { + new UnitTest::Simple { 1, "test a" }, + new UnitTest::Simple { 2, "test b" } + }; execCount += 1; return rtn; } - UnitTest::Simples SomeRowsParams(Ice::Int, const std::string&, const Ice::Current&) + UnitTest::Simples SomeRowsParams(Ice::Int pi, const std::string & ps, const Ice::Current&) { - UnitTest::Simples rtn; + UnitTest::Simples rtn { + new UnitTest::Simple { 0, "before" }, + new UnitTest::Simple { pi, ps }, + new UnitTest::Simple { 2, "after" } + }; execCount += 1; return rtn; } @@ -79,6 +86,7 @@ commonTests() BOOST_REQUIRE_EQUAL(dummy->execCount, 0); sr->process(NULL); BOOST_REQUIRE_EQUAL(dummy->execCount, 4); + BOOST_REQUIRE_EQUAL(sr->GetPresenterData(), iceroot / "expected" / "clientPresenter.log"); } static |