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/http/httpHeaderTest.java

22 lines
462 B

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());
}
}