1 |
| package org.jboss.cache.loader; |
2 |
| |
3 |
| import junit.framework.Test; |
4 |
| import junit.framework.TestSuite; |
5 |
| import org.jboss.cache.CacheImpl; |
6 |
| import org.jboss.cache.DefaultCacheFactory; |
7 |
| import org.jboss.cache.config.Configuration; |
8 |
| |
9 |
| |
10 |
| |
11 |
| |
12 |
| |
13 |
| |
14 |
| |
15 |
| public class LocalDelegatingCacheLoaderTest extends CacheLoaderTestsBase |
16 |
| { |
17 |
| CacheImpl delegating_cache; |
18 |
| |
19 |
61
| protected void configureCache() throws Exception
|
20 |
| { |
21 |
61
| delegating_cache = (CacheImpl) DefaultCacheFactory.getInstance().createCache(false);
|
22 |
61
| delegating_cache.getConfiguration().setCacheMode(Configuration.CacheMode.LOCAL);
|
23 |
61
| delegating_cache.create();
|
24 |
61
| delegating_cache.start();
|
25 |
| |
26 |
| |
27 |
61
| cache.getConfiguration().setCacheLoaderConfig(getSingleCacheLoaderConfig("", "org.jboss.cache.loader.LocalDelegatingCacheLoader", "", false, false, false));
|
28 |
| |
29 |
| |
30 |
61
| LocalDelegatingCacheLoader cacheLoader = new LocalDelegatingCacheLoader(delegating_cache);
|
31 |
61
| cache.setCacheLoader(cacheLoader);
|
32 |
| } |
33 |
| |
34 |
61
| protected void tearDown() throws Exception
|
35 |
| { |
36 |
61
| super.tearDown();
|
37 |
61
| delegating_cache.stop();
|
38 |
61
| delegating_cache.destroy();
|
39 |
| } |
40 |
| |
41 |
1
| public void testLoadAndStore() throws Exception
|
42 |
| { |
43 |
| |
44 |
| |
45 |
| } |
46 |
| |
47 |
1
| public void testPartialLoadAndStore()
|
48 |
| { |
49 |
| |
50 |
| } |
51 |
| |
52 |
1
| public void testBuddyBackupStore()
|
53 |
| { |
54 |
| |
55 |
| } |
56 |
| |
57 |
1
| public void testCacheLoaderThreadSafety()
|
58 |
| { |
59 |
| |
60 |
| } |
61 |
| |
62 |
1
| public void testCacheLoaderThreadSafetyMultipleFqns()
|
63 |
| { |
64 |
| |
65 |
| } |
66 |
| |
67 |
| |
68 |
1
| public static Test suite()
|
69 |
| { |
70 |
1
| return new TestSuite(LocalDelegatingCacheLoaderTest.class);
|
71 |
| } |
72 |
| |
73 |
| |
74 |
0
| public static void main(String[] args)
|
75 |
| { |
76 |
0
| junit.textui.TestRunner.run(suite());
|
77 |
| } |
78 |
| |
79 |
| } |