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) Instance Method Details
createSetupConnection
createSetupConnectionnewConnection
setUp
We create the connection that will create the database. The other one will be created lazily
setUpself setUp: Dictionary newsetUp:
We create the connection that will create the database. The other one will be created lazily
setUp: someOptions options := someOptions.
connection := setupConnection := nil.
self createSetupConnection
self dropDatabase
self createDatabase
self createTablessetupConnectionString:
setupConnectionString: aConnectionString setupConnectionString := aConnectionString