1 package net.sf.ehcache.store;
2
3 import net.sf.ehcache.Cache;
4 import org.junit.After;
5 import org.junit.Before;
6 import org.junit.Test;
7
8 /***
9 * Tests the pre ehcache-1.6 LruMemoryStore, which can be switched in
10 *
11 * @author Greg Luck
12 */
13 public class LruClassicMemoryStoreTest extends LruMemoryStoreTest {
14
15 /***
16 * setup test
17 */
18 @Before
19 public void setUp() throws Exception {
20 System.setProperty(Cache.NET_SF_EHCACHE_USE_CLASSIC_LRU, "true");
21 super.setUp();
22 }
23
24
25 /***
26 * teardown
27 */
28 @After
29 public void tearDown() throws Exception {
30 super.tearDown();
31 System.setProperty(Cache.NET_SF_EHCACHE_USE_CLASSIC_LRU, "false");
32 }
33
34 /***
35 * Test the LRU policy
36 */
37 @Test
38 public void testProbabilisticEvictionPolicy() throws Exception {
39 super.testProbabilisticEvictionPolicy();
40 }
41
42 }