CheckSyncReport Class Reference
[Client]

#include <ClientTest.h>

List of all members.

Public Member Functions

 CheckSyncReport (int clAdded=-1, int clUpdated=-1, int clDeleted=-1, int srAdded=-1, int srUpdated=-1, int srDeleted=-1)
virtual ~CheckSyncReport ()
virtual void check (int res, SyncReport &report) const
 CheckSyncReport (int clAdded=-1, int clUpdated=-1, int clDeleted=-1, int srAdded=-1, int srUpdated=-1, int srDeleted=-1)
virtual ~CheckSyncReport ()
virtual void check (int res, SyncReport &report) const

Public Attributes

const int clientAdded
const int clientUpdated
const int clientDeleted
const int serverAdded
const int serverUpdated
const int serverDeleted


Detailed Description

This class encapsulates logging and checking of a SyncReport. When constructed with default parameters, no checking will be done. Otherwise the sync report has to contain exactly the expected result. When multiple sync sources are active, all of them have to behave alike (which is how the tests are constructed).

No item is ever supposed to fail.

Definition at line 66 of file ClientTest.h.


Constructor & Destructor Documentation

CheckSyncReport::CheckSyncReport ( int  clAdded = -1,
int  clUpdated = -1,
int  clDeleted = -1,
int  srAdded = -1,
int  srUpdated = -1,
int  srDeleted = -1 
) [inline]

Definition at line 68 of file ClientTest.h.

virtual CheckSyncReport::~CheckSyncReport (  )  [inline, virtual]

Definition at line 78 of file ClientTest.h.

CheckSyncReport::CheckSyncReport ( int  clAdded = -1,
int  clUpdated = -1,
int  clDeleted = -1,
int  srAdded = -1,
int  srUpdated = -1,
int  srDeleted = -1 
) [inline]

Definition at line 68 of file ClientTest.h.

virtual CheckSyncReport::~CheckSyncReport (  )  [inline, virtual]

Definition at line 78 of file ClientTest.h.


Member Function Documentation

virtual void CheckSyncReport::check ( int  res,
SyncReport report 
) const [virtual]

checks that the sync completed as expected and throws CPPUnit exceptions if something is wrong

Parameters:
res return code from SyncClient::sync()
report the sync report stored in the SyncClient


Member Data Documentation

Definition at line 80 of file ClientTest.h.

Referenced by check().

Definition at line 80 of file ClientTest.h.

Referenced by check().

Definition at line 80 of file ClientTest.h.

Referenced by check().

Definition at line 80 of file ClientTest.h.

Referenced by check().

Definition at line 80 of file ClientTest.h.

Referenced by check().

Definition at line 80 of file ClientTest.h.

Referenced by check().


The documentation for this class was generated from the following files:

Generated on Sat Oct 18 17:17:03 2008 for SyncEvolution and Funambol by  doxygen 1.5.7.1