1 package com.macvu.tiles;
2
3 import junit.framework.TestCase;
4
5
6
7 import java.util.Set;
8
9 import java.util.List;
10
11 /***
12 * Created by IntelliJ IDEA.
13 * User: MVu
14 * Date: Mar 10, 2004
15 * Time: 3:48:25 PM
16 * To change this template use Options | File Templates.
17 */
18 public class CacheInformationTest extends TestCase {
19 public CacheInformationTest(String s) {
20 super(s);
21 }
22
23 public void setUp() throws Exception {
24 super.setUp();
25 }
26
27 public void testCacheInformation() {
28 CacheAttribute cacheAttr1 = new CacheAttribute();
29 cacheAttr1.setName("id");
30 cacheAttr1.setScope("request");
31 CacheAttribute cacheAttr2 = new CacheAttribute();
32 cacheAttr2.setName("id");
33 cacheAttr2.setScope("request");
34 CacheInformation cacheInfo = new CacheInformation();
35
36 cacheInfo.addCacheAttribute(cacheAttr1);
37
38 cacheInfo.addCacheAttribute(cacheAttr2);
39
40 List cacheAttributes = cacheInfo.getCacheAttributes();
41 assertEquals("There should be 1", 1, cacheAttributes.size());
42 }
43 }