yacy_search_server/test/de/anomic/kelondro/util/DateFormatterTest.java
orbiter 3197ca42ed preparations to move the HTCache into cora:
- move the header framework classes to cora
- move the ARC caching classes to cora
- refactoring of code to call these classes from cora

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7068 6c8d7289-2bf4-0310-a012-ef5d649a1542
2010-08-23 12:32:02 +00:00

25 lines
528 B
Java

package de.anomic.kelondro.util;
import java.util.Date;
import net.yacy.cora.protocol.HeaderFramework;
import junit.framework.TestCase;
public class DateFormatterTest extends TestCase {
/**
* Test of httpHeader date parsing routine
*/
public void testParseHTTPDate() {
Date parsedDate = HeaderFramework.parseHTTPDate("Tue, 08 Jul 2003 21:22:46 GMT");
// returned date must not be null
assertNotNull(parsedDate);
// Print Result
System.out.println("testParseHTTPDate: " + parsedDate.toString());
}
}