See: http://www.yacy-forum.de/viewtopic.php?t=3007 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2806 6c8d7289-2bf4-0310-a012-ef5d649a1542pull/1/head
parent
9b171d045c
commit
eedb898c45
@ -0,0 +1,21 @@
|
||||
package de.anomic.http;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
public class httpHeaderTest extends TestCase {
|
||||
|
||||
/**
|
||||
* Test of httpHeader date parsing routine
|
||||
*/
|
||||
public void testParseHTTPDate() {
|
||||
Date parsedDate = httpHeader.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());
|
||||
}
|
||||
}
|
Loading…
Reference in new issue