summaryrefslogtreecommitdiff
path: root/tests/bindingstest.h
blob: 5d04e11598f3f41bf9797811b82e296670984eea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#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 categorycolorConfigurationCompletness();
    void dictionaryConfigurationCompletness();
    void snippetConfigurationCompletness();
    void relationConfigurationCompletness();
    void noteCompletness();
    void fileCompletness();
    void eventCompletness();
    void eventDuration();
    void eventExceptions();
    void todoCompletness();
    void dueDateDateOnly();
    void journalCompletness();
    void freebusyCompletness();
    
    void contactCompletness();
    void distlistCompletness();

    void generateTimestampIfEmpty();

    void versionTest();
    void errorTest();
    void errorRecoveryTest();

    void BenchmarkRoundtripKolab();
    void BenchmarkRoundtrip();

    void preserveLatin1();
    void preserveUnicode();

};

#endif