1 package com.macvu.tiles.cache;
2
3 import junit.framework.TestCase;
4 import com.macvu.mock.servlet.MockServletContext;
5 import com.macvu.tiles.capture.CacheablesCaptureWrapper;
6
7 /***
8 * Created by IntelliJ IDEA.
9 * User: MVu
10 * Date: Mar 23, 2004
11 * Time: 3:49:33 PM
12 * To change this template use File | Settings | File Templates.
13 */
14 public class CacheablesCaptureWrapperTest extends TestCase {
15
16 MockServletContext servletContext;
17
18 public CacheablesCaptureWrapperTest(String s) {
19 super(s);
20 }
21
22 public void setUp() throws Exception {
23 super.setUp();
24
25 servletContext = new MockServletContext();
26 }
27
28 public void testCacheablesCaptureWrapper() {
29 {
30 CacheablesCaptureWrapper wrapper = new CacheablesCaptureWrapper(servletContext);
31
32 assertTrue("Cache should not be enable yet", !wrapper.isEnableCapture());
33
34 wrapper.enableCapture();
35 }
36
37 {
38 CacheablesCaptureWrapper wrapper = new CacheablesCaptureWrapper(servletContext);
39
40 assertTrue("Cache should be enable", wrapper.isEnableCapture());
41 }
42 }
43 }
44