GADriverTestFixture

Object subclass: #'GADriverTestFixture' 

Overview

I am a fixture setting up and tearing down the database and tables needed for running tests.

Each of my concrete subclasses implement the particular details of a database vendor. That is, for each driver flavor, one of me should be available.

For insight into my usage, look at the setup and teardown methods in DBXDriverTest

Class Method Details

setupConnectionString:connectionString:

setupConnectionString: setupConnectionString connectionString: connectionString 
| theConnectionString |
theConnectionString := GAConnectionString fromString: setupConnectionString.
^((GADriver driverAt: theConnectionString driverId) newFixtureForConnectionString: theConnectionString) 
setupConnectionString: setupConnectionString;
connectionString: connectionString;
yourself

Instance Method Details

connection

connection

connectionString

connectionString

connectionString:

connectionString: aConnectionString 
connectionString := aConnectionString

createDatabase

createDatabase

createTables

createTables

dropDatabase

dropDatabase

dropTables

dropTables

setUp

We create the connection that will create the database. The other one will be created lazily

setUp

setUp:

We create the connection that will create the database. The other one will be created lazily

setUp: someOptions 

setupConnectionString:

setupConnectionString: aConnectionString 
setupConnectionString := aConnectionString

tearDown