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
477 B
22 lines
477 B
16 years ago
|
package de.anomic.kelondro.util;
|
||
18 years ago
|
|
||
|
import java.util.Date;
|
||
|
|
||
|
import junit.framework.TestCase;
|
||
|
|
||
16 years ago
|
public class DateFormatterTest extends TestCase {
|
||
18 years ago
|
|
||
|
/**
|
||
|
* Test of httpHeader date parsing routine
|
||
|
*/
|
||
|
public void testParseHTTPDate() {
|
||
16 years ago
|
Date parsedDate = DateFormatter.parseHTTPDate("Tue, 08 Jul 2003 21:22:46 GMT");
|
||
18 years ago
|
|
||
|
// returned date must not be null
|
||
|
assertNotNull(parsedDate);
|
||
|
|
||
|
// Print Result
|
||
|
System.out.println("testParseHTTPDate: " + parsedDate.toString());
|
||
|
}
|
||
|
}
|