LocalTests Class Reference
[Test]

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

#include <ClientTest.h>

Collaboration diagram for LocalTests:
[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, bool relaxed=false)
 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 testLinkedItemsParent ()
virtual void testLinkedItemsChild ()
virtual void testLinkedItemsParentChild ()
virtual void testLinkedItemsChildParent ()
virtual void testLinkedItemsChildChangesParent ()
virtual void testLinkedItemsRemoveParentFirst ()
virtual void testLinkedItemsRemoveNormal ()
virtual void testLinkedItemsInsertParentTwice ()
virtual void testLinkedItemsInsertChildTwice ()
virtual void testLinkedItemsParentUpdate ()
virtual void testLinkedItemsUpdateChild ()
virtual void testLinkedItemsInsertBothUpdateChild ()
virtual void testLinkedItemsInsertBothUpdateParent ()

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 Apr 6 13:00:42 2010 for Funambol Outlook Plug-in Library by  doxygen 1.5.7.1