diff options
author | Justin Clark-Casey (justincc) | 2011-07-04 23:05:31 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-07-04 23:05:31 +0100 |
commit | af8773d6d076f5d74133857a5074bd9e9504dd64 (patch) | |
tree | 4ff80a7c292d7c93a0b5051c8e6285112f2e3d73 /OpenSim/Region/CoreModules | |
parent | add TestExpireAsset() (diff) | |
download | opensim-SC_OLD-af8773d6d076f5d74133857a5074bd9e9504dd64.zip opensim-SC_OLD-af8773d6d076f5d74133857a5074bd9e9504dd64.tar.gz opensim-SC_OLD-af8773d6d076f5d74133857a5074bd9e9504dd64.tar.bz2 opensim-SC_OLD-af8773d6d076f5d74133857a5074bd9e9504dd64.tar.xz |
Add TestClearCache()
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r-- | OpenSim/Region/CoreModules/Asset/Tests/FlotsamAssetCacheTests.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Asset/Tests/FlotsamAssetCacheTests.cs b/OpenSim/Region/CoreModules/Asset/Tests/FlotsamAssetCacheTests.cs index bbe40d1..63b0c31 100644 --- a/OpenSim/Region/CoreModules/Asset/Tests/FlotsamAssetCacheTests.cs +++ b/OpenSim/Region/CoreModules/Asset/Tests/FlotsamAssetCacheTests.cs | |||
@@ -106,5 +106,22 @@ namespace OpenSim.Region.CoreModules.Asset.Tests | |||
106 | AssetBase retrievedAsset = m_cache.Get(asset.ID.ToString()); | 106 | AssetBase retrievedAsset = m_cache.Get(asset.ID.ToString()); |
107 | Assert.That(retrievedAsset, Is.Null); | 107 | Assert.That(retrievedAsset, Is.Null); |
108 | } | 108 | } |
109 | |||
110 | [Test] | ||
111 | public void TestClearCache() | ||
112 | { | ||
113 | TestHelper.InMethod(); | ||
114 | // log4net.Config.XmlConfigurator.Configure(); | ||
115 | |||
116 | AssetBase asset = AssetHelpers.CreateAsset(); | ||
117 | asset.ID = TestHelper.ParseTail(0x2).ToString(); | ||
118 | |||
119 | m_cache.Store(asset); | ||
120 | |||
121 | m_cache.Clear(); | ||
122 | |||
123 | AssetBase retrievedAsset = m_cache.Get(asset.ID.ToString()); | ||
124 | Assert.That(retrievedAsset, Is.Null); | ||
125 | } | ||
109 | } | 126 | } |
110 | } \ No newline at end of file | 127 | } \ No newline at end of file |