mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-21 00:00:13 +02:00
3197ca42ed
- 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
25 lines
528 B
Java
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());
|
|
}
|
|
}
|