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
523 B

package de.anomic.kelondro.util;
import java.util.Date;
import net.yacy.kelondro.util.DateFormatter;
import junit.framework.TestCase;
public class DateFormatterTest extends TestCase {
/**
* Test of httpHeader date parsing routine
*/
public void testParseHTTPDate() {
Date parsedDate = DateFormatter.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());
}
}