1 package com.macvu.tiles.cache;
2
3 import junit.framework.TestCase;
4
5 /***
6 * Created by IntelliJ IDEA.
7 * User: MVu
8 * Date: Mar 23, 2004
9 * Time: 3:39:30 PM
10 * To change this template use File | Settings | File Templates.
11 */
12 public class CacheStatusTest extends TestCase {
13
14 public CacheStatusTest(String s) {
15 super(s);
16 }
17
18 public void testCacheStatus() {
19 String name = "file.name";
20 CacheStatus status = new CacheStatus(name);
21
22 status.setStatus(1);
23 status.setError("error string");
24
25 assertEquals("Name is tile.name", name, status.getName());
26 assertEquals("Status is 1", 1, status.getStatus());
27 assertEquals("Error String", "error string", status.getError());
28 }
29 }
30