summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2015-05-07 17:02:13 +0200
committerChristian Mollekopf <mollekopf@kolabsys.com>2015-05-07 17:02:13 +0200
commitd7a5dfa9dc5c7c9ae4b722f4fd018205d885269d (patch)
treee87b6326b57ee19f8d975da8906864bb0d0e6f85
parent36e1279dedaa9cf4c6e215b7e5c3b24e4364abed (diff)
downloadlibkolab-d7a5dfa9dc5c7c9ae4b722f4fd018205d885269d.tar.gz
Fixed kolabobjecttest
An event needs at least a startdate because of the validation.
-rw-r--r--tests/kolabobjecttest.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/kolabobjecttest.cpp b/tests/kolabobjecttest.cpp
index dbed3d3..1b38717 100644
--- a/tests/kolabobjecttest.cpp
+++ b/tests/kolabobjecttest.cpp
@@ -25,7 +25,8 @@
void KolabObjectTest::preserveLatin1()
{
KCalCore::Event::Ptr event(new KCalCore::Event());
- QString summary(QLatin1String("äöü%@$£é¤¼²°"));
+ event->setDtStart(KDateTime(QDate(2014, 1, 1)));
+ const QString summary(QLatin1String("äöü%@$£é¤¼²°"));
event->setSummary(summary);
QCOMPARE(event->summary(), summary);
//std::cout << event->summary().toStdString() << std::endl;
@@ -40,6 +41,7 @@ void KolabObjectTest::preserveLatin1()
void KolabObjectTest::preserveUnicode()
{
KCalCore::Event::Ptr event(new KCalCore::Event());
+ event->setDtStart(KDateTime(QDate(2014, 1, 1)));
QString summary(QString::fromUtf8("€Š�ـأبـ☺"));
event->setSummary(summary);
QCOMPARE(event->summary(), summary);
@@ -82,7 +84,7 @@ void KolabObjectTest::dontCrashWithEmptyIncidence()
void KolabObjectTest::parseRelationMembers()
{
{
- QString memberString("imap:///user/jan.aachen%40lhm.klab.cc/INBOX/20?message-id=%3Cf06aa3345a25005380b47547ad161d36%40lhm.klab.cc%3E&subject=Re%3A+test&date=Tue%2C+12+Aug+2014+20%3A42%3A59+%2B0200");
+ QString memberString("imap:/user/jan.aachen%40lhm.klab.cc/INBOX/20?message-id=%3Cf06aa3345a25005380b47547ad161d36%40lhm.klab.cc%3E&subject=Re%3A+test&date=Tue%2C+12+Aug+2014+20%3A42%3A59+%2B0200");
Kolab::RelationMember member = Kolab::parseMemberUrl(memberString);
QString result = Kolab::generateMemberUrl(member);