Logo Search packages:      
Sourcecode: mysql-connector-c++ version File versions

testsuite Namespace Reference


Detailed Description

Base class for all test cases. Creates connections, statements, etc. and closes them.

Author:
Mark Matthews
Version:
$Id: BaseTestCase.java 5440 2006-06-27 17:00:53 +0000 (Tue, 27 Jun 2006) mmatthews $
Author:
mmatthew
To change this generated comment edit the template variable "typecomment": Window>Preferences>Java>Templates. To enable and disable the creation of type comments go to Window>Preferences>Java>Code Generation.

Tests fixes for BLOB handling.

Author:
Mark Matthews
Version:
$Id: BlobRegressionTest.java,v 1.1.2.19 2005/03/09 18:16:16 mmatthews Exp $
Tests regressions w/ the Escape Processor code.

Version:
$Id:$
Author:
Tests SubQueries on MySQL > 4.1

Author:
Mark Matthews
Version:
$Id: SubqueriesRegressionTest.java,v 1.1.2.1 2005/05/13 18:58:38 mmatthews Exp $
Tests BLOB functionality in the driver.

Author:
Mark Matthews
Version:
Id
BlobTest.java 6707 2008-01-04 22:06:31Z mmatthews

Author:
Mark Matthews
Version:
$Id: TransactionTest.java,v 1.1.2.1 2005/05/13 18:58:37 mmatthews Exp $
Test of mysql_art_resultset. Actually so far - MyVal from there only

Example of a collection of tests

Test of the JDBC ResultSet class counterpart

Test for Bug [TODO - add bug number]


Classes

class  BaseTestFixture
struct  columndefinition
class  Filter
class  FiltersSuperposition
class  SerialFilter
class  SingleFilter
class  StartOptions
class  TAP
class  Test
class  TestCase
class  TestFailedException
struct  TestFixtureCommon
class  TestOutputter
class  TestsListener
class  TestsRunner
class  TestSuite
class  TestSuiteFactory
class  Timer
struct  udtattribute
class  unit_fixture
class  value_object

Typedefs

typedef std::auto_ptr
< sql::Connection > 
Connection
typedef sql::DatabaseMetaData * DatabaseMetaData
typedef sql::Driver Driver
typedef std::auto_ptr
< value_object > 
Object
typedef sql::ParameterMetaData ParameterMetaData
typedef std::auto_ptr
< sql::PreparedStatement > 
PreparedStatement
typedef std::auto_ptr
< sql::ResultSet > 
ResultSet
typedef sql::ResultSetMetaData * ResultSetMetaData
typedef std::auto_ptr
< sql::Savepoint > 
Savepoint
typedef std::auto_ptr
< sql::Statement > 
Statement
typedef Test *(* TestSuiteCreator )(const String::value_type *name)

Enumerations

enum  TestRunResult { trrPassed = 0, trrFailed, trrThrown }

Functions

void assertEquals (const String &expected, const String &result, const char *file, int line)
void assertEquals (const float &expected, const float &result, const char *file, int line)
void assertEquals (const double &expected, const double &result, const char *file, int line)
void assertEquals (const double &expected, const long double &result, const char *file, int line)
void assertEquals (const long double &expected, const long double &result, const char *file, int line)
void assertEquals (uint64_t expected, uint64_t result, const char *file, int line)
void assertEquals (int64_t expected, int64_t result, const char *file, int line)
void assertEquals (unsigned int expected, unsigned int result, const char *file, int line)
void assertEquals (int expected, int result, const char *file, int line)
void assertEquals (int expected, unsigned int result, const char *file, int line)
void assertEquals (bool expected, bool result, const char *file, int line)
void assertEquals (const char *expected, const char *result, const char *file, int line)
void assertEqualsEpsilon (const double &expected, const double &result, const double &epsilon, const char *file, int line)
void assertEqualsEpsilon (const long double &expected, const long double &result, const long double &epsilon, const char *file, int line)
void assertGreaterThan (unsigned int expected, unsigned int result, const char *file, int line)
void assertGreaterThan (int expected, int result, const char *file, int line)
void assertGreaterThan (int expected, unsigned int result, const char *file, int line)
void assertLessThan (unsigned int expected, unsigned int result, const char *file, int line)
void assertLessThan (int expected, int result, const char *file, int line)
void assertLessThan (int expected, unsigned int result, const char *file, int line)
void assertTrue (const String &msg, bool expression, const char *file, int line)
void assertTrueMessage (bool exp, const String &msg, const char *file, int line)
template<class SuiteClass>
Test * CreateTestCase (const String::value_type *name)
bool equal2any (const ciString &val, const String::value_type *arr[])
void fail (const char *reason, const char *file, int line)
bool fuzzyEquals (long double expected, long double result, long double fuzzyEpsilon)
bool fuzzyEquals (double expected, double result, double fuzzyEpsilon)
value_object * getObject (sql::ResultSet *rs, int colNum)
bool isNaN (double smth)
double scaledEpsilon (const long double &expected, const long double &fuzzyEpsilon)
double scaledEpsilon (const double &expected, const double &fuzzyEpsilon)

Variables

static const String defaultDb = _T("test")
static const String defaultHost = _T("127.0.0.1")
static const String defaultLogin = _T("root")
static const String defaultPasswd = _T("root")
static const String defaultPort = _T("3306")
static const String::value_type * falseStrings []
static const char * possiblePropertiesLocations []
static const String::value_type * trueStrings []
static const char * wildCardCharacter = "*"


Generated by  Doxygen 1.6.0   Back to index