fixed SPRNET-1163

This commit is contained in:
eeichinger
2009-03-04 23:38:14 +00:00
parent 6551126934
commit dfd93d42c3

View File

@@ -105,7 +105,21 @@ namespace Spring.Testing.NUnit
/// <param name="locations">Locations </param>
protected void SetDirty(string[] locations)
{
String keyString = ContextKeyString(locations);
SetDirty((object)locations);
}
/// <summary>
/// Set context with <paramref name="contextKey"/> dirty. This will cause
/// it to be reloaded from the cache before the next test case is executed.
/// </summary>
/// <remarks>
/// Call this method only if you change the state of a singleton
/// object, potentially affecting future tests.
/// </remarks>
/// <param name="contextKey">Locations </param>
protected void SetDirty(object contextKey)
{
String keyString = ContextKeyString(contextKey);
IConfigurableApplicationContext ctx =
(IConfigurableApplicationContext) contextKeyToContextMap[keyString];
contextKeyToContextMap.Remove(keyString);