package net.winstone.util;

import java.text.SimpleDateFormat;
import java.util.Locale;

import junit.framework.Assert;
import junit.framework.TestCase;

/**
 * DateCache Test Unit
 * 
 * @author <a href="mailto:jguibert@intelligents-ia.com" >Jerome Guibert</a>
 */
public class DateCacheTest extends TestCase {

	public void testSimple() {
		final DateCache cache = new DateCache(new SimpleDateFormat("EEE, d MMM yyyy HH:mm:ss", Locale.US));
		Assert.assertNotNull(cache);
		Assert.assertNotNull(cache.now());

		final long time = 1279534106123L;
		Assert.assertEquals("Mon, 19 Jul 2010 12:08:26", cache.format(time));

	}
}

@@ -504,19 +504,59 @@
 now());%0A
-%0A
 %09%09
+// avoid mistake with gmt and co.. %0A%09%09// 
 final lo
@@ -579,24 +579,27 @@
 4106123L;%0A%09%09
+// 
 Assert.asser

simplify test