public class DatelessReplayRequestParserTest
extends junit.framework.TestCase
DatelessReplayRequestParser
Constructor and Description |
---|
DatelessReplayRequestParserTest() |
Modifier and Type | Method and Description |
---|---|
protected void |
setUp() |
protected void |
setupRequest(String requestURI) |
void |
testAcceptDate_invalid()
Throws TimeGateBadQueryException if Accept-Datetime is present
but invalid.
|
void |
testAcceptDate_invalidWithTimestamp()
Invalid Accept-Datetime is simply ignored if valid
Accept-Timestamp is present.
|
void |
testAcceptDatetime() |
void |
testAcceptTimestamp_invalid()
invalid Accept-Timestamp is simply ignored
|
void |
testAcceptTimestamp()
Alternate header
Accept-Timestamp is in DT14 format. |
void |
testFullUrlWithUserInfo()
But userinfo is accepted in full URL...
|
void |
testMementoDisabled()
Accept-Datetime is ignored unless
enabledMemento is true . |
void |
testNonURL() |
void |
testNoProtocol() |
void |
testProtocolRelative() |
void |
testProtocolSingleSlash()
http:/ is repaired to http:// . |
void |
testUrlWithUserInfo() |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
protected void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
protected void setupRequest(String requestURI)
public void testAcceptTimestamp() throws Exception
Accept-Timestamp
is in DT14 format.Exception
public void testAcceptTimestamp_invalid() throws Exception
Exception
public void testAcceptDate_invalid() throws Exception
Exception
public void testAcceptDate_invalidWithTimestamp() throws Exception
Exception
public void testMementoDisabled() throws Exception
enabledMemento
is true
.Exception
public void testProtocolSingleSlash() throws Exception
http:/
is repaired to http://
.Exception
public void testFullUrlWithUserInfo() throws Exception
Exception
Copyright © 2005–2015 IIPC. All rights reserved.