1 package com.macvu.tiles.xmlDefinition;
2
3
4
5 import junit.framework.TestCase;
6
7
8
9 /***
10
11 * Created by IntelliJ IDEA.
12
13 * User: MVu
14
15 * Date: Mar 23, 2004
16
17 * Time: 3:33:09 PM
18
19 * To change this template use File | Settings | File Templates.
20
21 */
22
23 public class XmlCacheInformationTest extends TestCase {
24
25 public XmlCacheInformationTest(String s) {
26
27 super(s);
28
29 }
30
31
32
33 public void setUp() throws Exception {
34
35
36
37 }
38
39
40
41 public void testXmlCacheInformation() {
42
43 XmlCacheAttribute cacheAttr = new XmlCacheAttribute();
44
45 cacheAttr.setName("foo");
46
47 cacheAttr.setScope("request");
48
49
50
51 XmlCacheInformation cacheInfo = new XmlCacheInformation();
52
53
54
55 cacheInfo.addCacheAttribute(cacheAttr);
56
57
58
59 assertEquals("Attribute count is 1", 1, cacheInfo.getCacheAttributes().size());
60
61 }
62
63 }
64