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.
22 lines
462 B
22 lines
462 B
18 years ago
|
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());
|
||
|
}
|
||
|
}
|