KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > cache > tests > FileCacheLoaderTest


1 /*
2 * JBoss, the OpenSource J2EE webOS
3 *
4 * Distributable under LGPL license.
5 * See terms of license at gnu.org.
6 */

7 package org.jboss.cache.tests;
8
9 import junit.framework.Test;
10 import junit.framework.TestSuite;
11
12 import java.util.Properties JavaDoc;
13
14 /**
15  * Created by IntelliJ IDEA.
16  * User: bela
17  * Date: Jun 9, 2004
18  * Time: 9:05:19 AM
19  */

20 public class FileCacheLoaderTest extends CacheLoaderTestsBase {
21
22
23    protected void configureCache() throws Exception JavaDoc {
24       cache.setCacheLoaderClass("org.jboss.cache.loader.FileCacheLoader");
25       Properties JavaDoc props=new Properties JavaDoc();
26       props.setProperty("location", "c:\\tmp");
27       cache.setCacheLoaderConfig(props);
28    }
29
30
31
32
33    public static Test suite() {
34       return new TestSuite(FileCacheLoaderTest.class);
35    }
36
37
38    public static void main(String JavaDoc[] args) {
39       junit.textui.TestRunner.run(suite());
40    }
41
42 }
43
Popular Tags