SyncManagerTest Class Reference

This class is intended to test the SyncManager class, the core of sync process. More...

#include <SyncManagerTest.h>

List of all members.

Public Member Functions

void runTests ()

Private Member Functions

void testServerError506 ()
 Checks for a loop in SyncManager::sync(), because of a missing <Final> tag in case of Server error while inserting items (fixed in v.8.0).


Detailed Description

This class is intended to test the SyncManager class, the core of sync process.

Tests implemented:


Member Function Documentation

void SyncManagerTest::testServerError506 (  )  [private]

Checks for a loop in SyncManager::sync(), because of a missing <Final> tag in case of Server error while inserting items (fixed in v.8.0).

The test:

  • Sync 2 sources (contacts and calendar), with many items for calendar (50).
  • Set a low max_msg_size (5k), so that calendar items are split in multimessage
  • Use a defined TransportAgent (TransportAgentTestError506) to capture the 3rd message from Server and modify it to simulate an exception Server side (error 506) Test passes if the sync does not loop infinite.

References SyncManagerConfig::getResponseTimeout(), SyncManagerConfig::getSyncSourceConfig(), SyncManagerConfig::getSyncURL(), and SyncSourceConfig::setSync().


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

Generated on Tue Jun 30 12:52:38 2009 for Funambol Outlook Plug-in Library by  doxygen 1.5.7.1