Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractDependencyInjectionSpringContextTests Members

AbstractDependencyInjectionSpringContextTests overview

Public Instance Constructors

AbstractDependencyInjectionSpringContextTests Constructor Default constructor for AbstractDependencyInjectionSpringContextTests.

Public Instance Properties

AutowireMode Gets or sets the autowire mode for test properties set by Dependency Injection.
DependencyCheck Gets or sets a flag specifying whether or not dependency checking should be performed for test properties set by Dependency Injection.
LoadCount Gets the current number of context load attempts.
PopulateProtectedVariables 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.

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.
SetDirtyOverloaded. 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 Test setup method.
TearDown Test teardown method.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Fields

applicationContext Application context this test will run against.
logger (inherited from AbstractSpringContextTests) Logger available to subclasses.
managedVariableNames Holds names of the fields that should be used for field injection.

Protected Instance Properties

ConfigLocations 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 Gets a key for this context. Usually based on config locations, but a subclass overriding buildContext() might want to return its class.

Protected Instance Methods

BeforeProtectedVariableInjection Called right before a field is being injected
ContextKeyString (inherited from AbstractSpringContextTests) Converts context key to string.
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 Retrieves the names of the fields that should be used for field injection.
InjectDependencies Inject dependencies into 'this' instance (that is, this test instance).
InjectProtectedVariables Injects protected fields using Field Injection.
LoadContext (inherited from AbstractSpringContextTests) Loads application context based on user-defined key.
LoadContextLocations Loads application context from the specified resource locations.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.
OnSetUp Subclasses can override this method in order to add custom test setup logic.
OnTearDown Subclasses can override this method in order to add custom test teardown logic.
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.

See Also

AbstractDependencyInjectionSpringContextTests Class | Spring.Testing.NUnit Namespace