You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yacy_search_server/test/de/anomic/kelondro/util/DateFormatterTest.java

24 lines
526 B

package de.anomic.kelondro.util;
import java.util.Date;
import de.anomic.http.server.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());
}
}