summaryrefslogtreecommitdiff
path: root/tests/bindingstest.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2012-03-28 14:59:51 (GMT)
committerChristian Mollekopf <chrigi_1@fastmail.fm>2012-03-28 14:59:51 (GMT)
commit1288bf09e5f92b5123d4e5b127b904353bceba80 (patch)
tree6906983becfd2bdeae28e2740f89685256de304c /tests/bindingstest.h
parent987217d13ca95c4d77b423f4c468e69986321386 (diff)
downloadlibkolabxml-1288bf09e5f92b5123d4e5b127b904353bceba80.tar.gz
got rid of the libkolabxml subdirectory
Diffstat (limited to 'tests/bindingstest.h')
-rw-r--r--tests/bindingstest.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/tests/bindingstest.h b/tests/bindingstest.h
new file mode 100644
index 0000000..16c933c
--- /dev/null
+++ b/tests/bindingstest.h
@@ -0,0 +1,43 @@
+#ifndef BINDINGSTEST_H
+#define BINDINGSTEST_H
+
+#include <QtCore/QObject>
+#include <QtTest/QtTest>
+
+/*
+ * The test are roundtrip tests, which simply write an object out and read it again. The two objects are then compared for equality.
+ * This assumes that containers are working (comparison operators and adding/removing values).
+ *
+ * Testing it properly would mean to add loads of testfiles in text so we could:
+ * serialize => compare to text representation
+ * deserialize => check values
+ *
+ * If we would do this ideally for every property on every type that would result in a lot of work.
+ *
+ */
+
+class BindingsTest : public QObject
+{
+ Q_OBJECT
+ private slots:
+
+ //Kolabformat
+ void noteCompletness();
+ void eventCompletness();
+ void eventDuration();
+ void todoCompletness();
+ void journalCompletness();
+
+ void contactCompletness();
+ void distlistCompletness();
+
+ void versionTest();
+ void errorTest();
+ void errorRecoveryTest();
+
+ void BenchmarkRoundtripKolab();
+ void BenchmarkRoundtrip();
+
+};
+
+#endif \ No newline at end of file