summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2012-10-25 09:28:00 (GMT)
committerChristian Mollekopf <mollekopf@kolabsys.com>2012-10-25 09:28:00 (GMT)
commit2f544da3e3a76994d9388424ba523f54a3aeaacc (patch)
tree4dc0cdfde3d5f8f7b075d6951a0c2593a3660915
parentc0ddadb5da7a5c64ca0381998020162c6237d873 (diff)
downloadkolab-utils-2f544da3e3a76994d9388424ba523f54a3aeaacc.tar.gz
Verify the organizer makes it to the aggregated file
-rw-r--r--fbdaemon/tests/fbaggregatortest.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/fbdaemon/tests/fbaggregatortest.cpp b/fbdaemon/tests/fbaggregatortest.cpp
index 6fe3797..1a0c308 100644
--- a/fbdaemon/tests/fbaggregatortest.cpp
+++ b/fbdaemon/tests/fbaggregatortest.cpp
@@ -55,6 +55,7 @@ public:
{
Object fbObj1;
Kolab::Freebusy fb;
+ fb.setOrganizer(Kolab::ContactReference("mail@example.com", "john doe"));
fb.setStart(Kolab::Conversion::fromDate(KDateTime::currentUtcDateTime()));
fb.setEnd(Kolab::Conversion::fromDate(KDateTime::currentUtcDateTime().addDays(60)));
fbObj1.message = Kolab::KolabObjectWriter::writeFreebusy(fb, Kolab::KolabV3, "fbtest");
@@ -113,6 +114,9 @@ private:
QVERIFY(msg);
QCOMPARE(msg->method(), KCalCore::iTIPPublish);
QCOMPARE(format.timeSpec(), KDateTime::Spec::UTC());
+ QVERIFY(msg->event());
+ QVERIFY(!msg->event()->organizer().isNull());
+
//Check that aggregated fb object has been created
}