LocalTests Class Reference
[Sync Client]

local test of one sync source and utility functions also used by sync tests More...

#include <ClientTest.h>

Collaboration diagram for LocalTests:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LocalTests (const std::string &name, ClientTest &cl, int sourceParam, ClientTest::Config &co)
virtual void addTests ()
 adds the supported tests to the instance itself; this is the function that a derived class can override to add additional tests
virtual std::string insert (CreateSource createSource, const char *data)
 opens source and inserts the given item; can be called regardless whether the data source already contains items or not
virtual void update (CreateSource createSource, const char *data, bool check=true)
 assumes that exactly one element is currently inserted and updates it with the given item
virtual void deleteAll (CreateSource createSource)
 deletes all items locally via sync source
virtual void compareDatabases (const char *refFile, SyncSource &copy, bool raiseAssert=true)
 takes two databases, exports them, then compares them using synccompare
virtual int insertManyItems (CreateSource createSource, int startIndex=1, int numItems=0, int size=-1)
 insert artificial items, number of them determined by TEST_EVOLUTION_NUM_ITEMS unless passed explicitly
virtual void testOpen ()
virtual void testIterateTwice ()
virtual void testSimpleInsert ()
virtual void testLocalDeleteAll ()
virtual void testComplexInsert ()
virtual void testLocalUpdate ()
virtual void testChanges ()
virtual void testImport ()
virtual void testImportDelete ()
virtual void testManyChanges ()
virtual void testLinkedItems ()

Public Attributes

ClientTestclient
 the client we are testing
const int source
 number of the source we are testing in that client
const ClientTest::Config config
 configuration that corresponds to source
CreateSource createSourceA
 helper funclets to create sources
CreateSource createSourceB

Detailed Description

local test of one sync source and utility functions also used by sync tests


The documentation for this class was generated from the following files:
Generated on Tue Jun 10 17:20:30 2008 for Funambol C++ Client Library by  doxygen 1.5.2