SyncEvolutionCmdlineTest Class Reference

List of all members.

Classes

class  ScopedEnvChange
class  TestCmdline

Public Member Functions

 SyncEvolutionCmdlineTest ()

Protected Member Functions

void testFramework ()
void removeRandomUUID (string &buffer)
void testSetupScheduleWorld ()
void testSetupDefault ()
void testSetupRenamed ()
void testSetupFunambol ()
void testSetupSynthesis ()
void testTemplate ()
void testPrintServers ()
void testPrintConfig ()
void testSync ()
void testConfigure ()
void testOldConfigure ()
void doConfigure (const string &SWConfig, const string &addressbookPrefix)
void testListSources ()
void testMigrate ()

Protected Attributes

const string m_testDir
const string m_scheduleWorldConfig


Detailed Description

Testing is based on a text representation of a directory hierarchy where each line is of the format <file path>="">:<line in="" file>="">

The order of files is alphabetical, of lines in the file as in the file. Lines in the file without line break cannot be represented.

The root of the hierarchy is not part of the representation itself.

Definition at line 854 of file SyncEvolutionCmdline.cpp.


Constructor & Destructor Documentation

SyncEvolutionCmdlineTest::SyncEvolutionCmdlineTest (  )  [inline]

Definition at line 873 of file SyncEvolutionCmdline.cpp.


Member Function Documentation

void SyncEvolutionCmdlineTest::doConfigure ( const string &  SWConfig,
const string &  addressbookPrefix 
) [inline, protected]

Definition at line 1376 of file SyncEvolutionCmdline.cpp.

References CPPUNIT_ASSERT_EQUAL_DIFF.

Referenced by testConfigure(), and testOldConfigure().

void SyncEvolutionCmdlineTest::removeRandomUUID ( string &  buffer  )  [inline, protected]

Definition at line 958 of file SyncEvolutionCmdline.cpp.

Referenced by testPrintConfig(), and testSetupScheduleWorld().

void SyncEvolutionCmdlineTest::testConfigure (  )  [inline, protected]

void SyncEvolutionCmdlineTest::testFramework (  )  [inline, protected]

verify that createFiles/scanFiles themselves work

Definition at line 934 of file SyncEvolutionCmdline.cpp.

References CPPUNIT_ASSERT_EQUAL_DIFF, and m_testDir.

void SyncEvolutionCmdlineTest::testListSources (  )  [inline, protected]

Definition at line 1447 of file SyncEvolutionCmdline.cpp.

References CPPUNIT_ASSERT_EQUAL_DIFF.

void SyncEvolutionCmdlineTest::testMigrate (  )  [inline, protected]

void SyncEvolutionCmdlineTest::testOldConfigure (  )  [inline, protected]

Definition at line 1356 of file SyncEvolutionCmdline.cpp.

References doConfigure(), m_testDir, and rm_r().

void SyncEvolutionCmdlineTest::testPrintConfig (  )  [inline, protected]

void SyncEvolutionCmdlineTest::testPrintServers (  )  [inline, protected]

void SyncEvolutionCmdlineTest::testSetupDefault (  )  [inline, protected]

void SyncEvolutionCmdlineTest::testSetupFunambol (  )  [inline, protected]

Definition at line 1045 of file SyncEvolutionCmdline.cpp.

References CPPUNIT_ASSERT_EQUAL_DIFF, m_testDir, and rm_r().

Referenced by testPrintConfig(), and testPrintServers().

void SyncEvolutionCmdlineTest::testSetupRenamed (  )  [inline, protected]

void SyncEvolutionCmdlineTest::testSetupScheduleWorld (  )  [inline, protected]

create new configurations

Definition at line 968 of file SyncEvolutionCmdline.cpp.

References CPPUNIT_ASSERT_EQUAL_DIFF, m_scheduleWorldConfig, m_testDir, removeRandomUUID(), and rm_r().

Referenced by testConfigure(), and testPrintServers().

void SyncEvolutionCmdlineTest::testSetupSynthesis (  )  [inline, protected]

Definition at line 1062 of file SyncEvolutionCmdline.cpp.

References CPPUNIT_ASSERT_EQUAL_DIFF, m_testDir, and rm_r().

Referenced by testPrintServers().

void SyncEvolutionCmdlineTest::testSync (  )  [inline, protected]

Definition at line 1215 of file SyncEvolutionCmdline.cpp.

References CPPUNIT_ASSERT_EQUAL_DIFF, and runtests::help.

void SyncEvolutionCmdlineTest::testTemplate (  )  [inline, protected]

Definition at line 1079 of file SyncEvolutionCmdline.cpp.

References CPPUNIT_ASSERT_EQUAL_DIFF, and runtests::help.


Member Data Documentation

const string SyncEvolutionCmdlineTest::m_testDir [protected]


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

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