SipDbTestContext Class Reference

#include <SipDbTestContext.h>

Inheritance diagram for SipDbTestContext:

FileTestContext RegistrationDbTestContext

List of all members.


Detailed Description

Utilities for redirecting sipdb resources during unit tests.

This class and its subclasses extend the test file abstraction provided by FileTestContext to include the sipdb databases.

Public Member Functions

 SipDbTestContext (const char *testInputDir, const char *testWorkingDir)
 Define a context for a test or set of tests.
virtual ~SipDbTestContext ()
 Destructor.

Protected Member Functions

virtual void setFastDbEnvironment ()

Private Member Functions

 SipDbTestContext (const SipDbTestContext &)
 There is no copy constructor.
SipDbTestContextoperator= (const SipDbTestContext &)
 There is no assignment operator.


Constructor & Destructor Documentation

SipDbTestContext ( const char *  testInputDir,
const char *  testWorkingDir 
)

Define a context for a test or set of tests.

In addition to setting the FileTestContext, this sets the testWorkingDir to be the location of the files for the SIPDBManager and the persistent storage for all databases.

Parameters:
testInputDir  directory for test input & template files
testWorkingDir  directory for test working files.

virtual ~SipDbTestContext (  )  [virtual]

Destructor.

SipDbTestContext ( const SipDbTestContext  )  [private]

There is no copy constructor.


Member Function Documentation

virtual void setFastDbEnvironment (  )  [protected, virtual]

SipDbTestContext& operator= ( const SipDbTestContext  )  [private]

There is no assignment operator.


Online Library Docs

sipXecs home page

Version 4.2.1-018930 2010-07-31T01:13:23 build16 abuild