1 |
| package org.jboss.cache.loader; |
2 |
| |
3 |
| import junit.framework.Test; |
4 |
| import junit.framework.TestSuite; |
5 |
| import org.jboss.cache.misc.TestingUtil; |
6 |
| |
7 |
| |
8 |
| |
9 |
| |
10 |
| |
11 |
| |
12 |
| |
13 |
| public class JdbmCacheLoaderTest extends CacheLoaderTestsBase |
14 |
| { |
15 |
61
| protected void configureCache() throws Exception
|
16 |
| { |
17 |
61
| String tmpDir = System.getProperty("java.io.tmpdir", "/tmp");
|
18 |
61
| String tmpCLLoc = tmpDir + "/JBossCache-FileCacheLoaderTest";
|
19 |
61
| cache.getConfiguration().setCacheLoaderConfig(getSingleCacheLoaderConfig("", "org.jboss.cache.loader.jdbm.JdbmCacheLoader", "location=" + tmpCLLoc, false, true, false));
|
20 |
61
| TestingUtil.recursiveFileRemove(tmpCLLoc);
|
21 |
| } |
22 |
| |
23 |
1
| public static Test suite()
|
24 |
| { |
25 |
1
| return new TestSuite(JdbmCacheLoaderTest.class);
|
26 |
| } |
27 |
| |
28 |
0
| public static void main(String[] args)
|
29 |
| { |
30 |
0
| junit.textui.TestRunner.run(suite());
|
31 |
| } |
32 |
| |
33 |
| } |