GAConnectionTest
Overview
Please comment me using the following template inspired by Class Responsibility Collaborator (CRC) design:
For the Class part: State the name of the class with one line description: For example, I'm xxx the root of the hierarchy of visitor objects.
For the Responsibility part: Three sentences about my main responsibility, what I'm doing, what services do I offer.
For the Collaborators Part: State my main collaborators and one line about how I interact with them.
Public API and Key Messages
- label item
One simple example is simply gorgeous.
Internal Representation and Key Implementation Points.
Implementation Points
Instance Method Details
testConnectionStringDriver
testConnectionStringDriver| driver |
driver := GADriver fromConnectionString: fixture connectionString.
self assert: driver driverId asLowercase equals: fixture connectionString asZnUrl scheme asLowercase
testConnectionsAreFinalizedOnCollection
testConnectionsAreFinalizedOnCollection| newConnection |
newConnection := fixture newConnection.
newConnection finalize
self deny: newConnection isConnected
testConnectionsAreRegisteredForFinalization
testConnectionsAreRegisteredForFinalization| newConnection |
newConnection := fixture newConnection.
self assert: newConnection isRegisteredForFinalization.
newConnection close
testGetConnectionFromConnectionStringDoesNotOpenConnection
testGetConnectionFromConnectionStringDoesNotOpenConnection| connection |
connection := GADriver fromConnectionString: fixture connectionString.
self deny: connection isConnected
testNotConnected
testNotConnected| newConnection |
newConnection := fixture newConnection.
newConnection close
self deny: newConnection isConnected