1 package com.macvu.tiles.cache;
2
3 import junit.framework.TestCase;
4
5 import com.macvu.tiles.CacheInformation;
6
7 /***
8 * Created by IntelliJ IDEA.
9 * User: MVu
10 * Date: Mar 23, 2004
11 * Time: 3:46:46 PM
12 * To change this template use File | Settings | File Templates.
13 */
14
15 public class SingleLRUCacheServiceFactoryTest extends TestCase {
16
17 SingleLRUCacheServiceFactory factory;
18
19 public SingleLRUCacheServiceFactoryTest(String s) {
20 super(s);
21 }
22
23 public void setUp() throws Exception {
24 factory = new SingleLRUCacheServiceFactory();
25 }
26
27 public void testSingleLRUCacheServiceFactory() {
28 CacheInformation info = new CacheInformation();
29 info.setRepositoryName("foo");
30
31 CacheInformation info2 = new CacheInformation();
32 info2.setRepositoryName("bar");
33
34 CacheService service1 = factory.getCacheService(info);
35 CacheService service2 = factory.getCacheService(info2);
36
37 assertEquals("Service are the same", service1, service2);
38 }
39 }