Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractTransactionalSpringContextTests Members

AbstractTransactionalSpringContextTests overview

Public Instance Constructors

AbstractTransactionalSpringContextTests Constructor Initializes a new instance of the AbstractTransactionalSpringContextTests class.

Public Instance Properties

AutowireMode (inherited from AbstractDependencyInjectionSpringContextTests) Gets or sets the autowire mode for test properties set by Dependency Injection.
DefaultRollback 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 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).
SetUp (inherited from AbstractDependencyInjectionSpringContextTests) Test setup method.
TearDown (inherited from AbstractDependencyInjectionSpringContextTests) Test teardown method.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Fields

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 The transaction manager to use
transactionStatus 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 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.
EndTransaction 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.
OnSetUp Creates a transaction
OnSetUpBeforeTransaction Callback method called before transaction is setup.
OnSetUpInTransaction Callback method called after transaction is setup.
OnTearDown rollback the transaction.
OnTearDownAfterTransaction Callback after rolling back the transaction.
OnTearDownInTransaction Callback before rolling back the transaction.
PreventTransaction Prevents the transaction.
SetComplete Set the complete flag..
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 Starts the new transaction.

See Also

AbstractTransactionalSpringContextTests Class | Spring.Testing.NUnit Namespace