Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractTransactionalDbProviderSpringContextTests Members

AbstractTransactionalDbProviderSpringContextTests overview

Public Instance Constructors

AbstractTransactionalDbProviderSpringContextTests Constructor Initializes a new instance of the AbstractTransactionalDbProviderSpringContextTests class.

Public Instance Properties

AdoTemplate Gets or sets the AdoTemplate that this base class manages.
AutowireMode (inherited from AbstractDependencyInjectionSpringContextTests) Gets or sets the autowire mode for test properties set by Dependency Injection.
DbProvider Sets the DbProvider, via Dependency Injection.
DefaultRollback (inherited from AbstractTransactionalSpringContextTests) Sets the default rollback flag.
DependencyCheck (inherited from AbstractDependencyInjectionSpringContextTests) Gets or sets a flag specifying whether or not dependency checking should be performed for test properties set by Dependency Injection.
LoadCount (inherited from AbstractDependencyInjectionSpringContextTests) Gets the current number of context load attempts.
PopulateProtectedVariables (inherited from AbstractDependencyInjectionSpringContextTests) Gets or sets a flag specifying whether to populate protected variables of this test case.
RegisterContextWithContextRegistry (inherited from AbstractSpringContextTests) Controls, whether application context instances will be registered/unregistered with the global ContextRegistry. Defaults to true.
TransactionManager (inherited from AbstractTransactionalSpringContextTests) Sets the transaction manager to use.

Public Instance Methods

AddContext (inherited from AbstractSpringContextTests) Caches application context.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
SetDirty (inherited from AbstractDependencyInjectionSpringContextTests)Overloaded. Called to say that the "applicationContext" instance variable is dirty and should be reloaded. We need to do this if a test has modified the context (for example, by replacing an object definition).
TestCleanup (inherited from AbstractDependencyInjectionSpringContextTests) Test teardown method.
TestInitialize (inherited from AbstractDependencyInjectionSpringContextTests) Test setup method.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Fields

adoTemplate Holds the AdoTemplate that this base class manages
applicationContext (inherited from AbstractDependencyInjectionSpringContextTests) Application context this test will run against.
logger (inherited from AbstractSpringContextTests) Logger available to subclasses.
managedVariableNames (inherited from AbstractDependencyInjectionSpringContextTests) Holds names of the fields that should be used for field injection.
transactionManager (inherited from AbstractTransactionalSpringContextTests) The transaction manager to use
transactionStatus (inherited from AbstractTransactionalSpringContextTests) TransactionStatus for this test. Typical subclasses won't need to use it.

Protected Instance Properties

ConfigLocations (inherited from AbstractDependencyInjectionSpringContextTests) Subclasses must implement this property to return the locations of their config files. A plain path will be treated as a file system location.
ContextKey (inherited from AbstractDependencyInjectionSpringContextTests) Gets a key for this context. Usually based on config locations, but a subclass overriding buildContext() might want to return its class.
TransactionDefinition (inherited from AbstractTransactionalSpringContextTests) Set the ITransactionDefinition to be used

Protected Instance Methods

BeforeProtectedVariableInjection (inherited from AbstractDependencyInjectionSpringContextTests) Called right before a field is being injected
ContextKeyString (inherited from AbstractSpringContextTests) Converts context key to string.
CountRowsInTable Counts the rows in given table.
DeleteFromTables Convenient method to delete all rows from these tables. Calling this method will make avoidance of rollback by calling SetComplete() impossible.
EndTransaction (inherited from AbstractTransactionalSpringContextTests) Ends the transaction.
Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
GetContext (inherited from AbstractSpringContextTests) Returns cached context if present, or loads it if not.
HasCachedContext (inherited from AbstractSpringContextTests) Returns true if context for the specified contextKey is cached.
InitManagedVariableNames (inherited from AbstractDependencyInjectionSpringContextTests) Retrieves the names of the fields that should be used for field injection.
InjectDependencies (inherited from AbstractDependencyInjectionSpringContextTests) Inject dependencies into 'this' instance (that is, this test instance).
InjectProtectedVariables (inherited from AbstractDependencyInjectionSpringContextTests) Injects protected fields using Field Injection.
LoadContext (inherited from AbstractSpringContextTests) Loads application context based on user-defined key.
LoadContextLocations (inherited from AbstractDependencyInjectionSpringContextTests) Loads application context from the specified resource locations.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.
OnSetUpBeforeTransaction (inherited from AbstractTransactionalSpringContextTests) Callback method called before transaction is setup.
OnSetUpInTransaction (inherited from AbstractTransactionalSpringContextTests) Callback method called after transaction is setup.
OnTearDownAfterTransaction (inherited from AbstractTransactionalSpringContextTests) Callback after rolling back the transaction.
OnTearDownInTransaction (inherited from AbstractTransactionalSpringContextTests) Callback before rolling back the transaction.
OnTestCleanup (inherited from AbstractTransactionalSpringContextTests) rollback the transaction.
OnTestInitialize (inherited from AbstractTransactionalSpringContextTests) Creates a transaction
PreventTransaction (inherited from AbstractTransactionalSpringContextTests) Prevents the transaction.
SetComplete Overridden to prevent the transaction committing if a number of tables have been cleared, as a defensive measure against accidental permanent wiping of a database.
SetDirty (inherited from AbstractSpringContextTests)Overloaded. Set custom locations dirty. This will cause them to be reloaded from the cache before the next test case is executed.
StartNewTransaction (inherited from AbstractTransactionalSpringContextTests) Starts the new transaction.

See Also

AbstractTransactionalDbProviderSpringContextTests Class | Spring.Testing.Microsoft Namespace