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 runAllTests ()
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).
void testLargeObject2 ()
 Test Large object issue (bug #7794) with a Replace command split in 2 msg, and also a Delete command in the second msg.


Detailed Description

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

Tests implemented:


Member Function Documentation

void SyncManagerTest::testLargeObject2 (  ) 

Test Large object issue (bug #7794) with a Replace command split in 2 msg, and also a Delete command in the second msg.

If fails, the Server commands are not parsed in the correct order by Client APIs (fixed in v8SP1).

References CLIENT, SyncManagerConfig::getAccessConfig(), SyncManagerConfig::getDeviceConfig(), SyncSourceReport::getItemReportSuccessfulCount(), SyncManagerConfig::getResponseTimeout(), SyncManagerConfig::getSyncSourceConfig(), SyncManagerConfig::getSyncURL(), and SyncSourceConfig::setIsEnabled().

void SyncManagerTest::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).

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