revert ResourceHandlerTest changes
Signed-off-by: Greg Wilkins <gregw@webtide.com>
This commit is contained in:
parent
6528b79fbd
commit
9397ae2d77
|
@ -170,14 +170,14 @@ public class ResourceHandlerTest
|
|||
assertThat(response.getContent(),containsString("big.txt"));
|
||||
assertThat(response.getContent(),containsString("bigger.txt"));
|
||||
assertThat(response.getContent(),containsString("directory"));
|
||||
assertThat(response.getContent(),containsString("simple.raw"));
|
||||
assertThat(response.getContent(),containsString("simple.txt"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testHeaders() throws Exception
|
||||
{
|
||||
HttpTester.Response response = HttpTester.parseResponse(
|
||||
_local.getResponse("GET /resource/simple.raw HTTP/1.0\r\n\r\n"));
|
||||
_local.getResponse("GET /resource/simple.txt HTTP/1.0\r\n\r\n"));
|
||||
assertThat(response.getStatus(),equalTo(200));
|
||||
assertThat(response.get(CONTENT_TYPE),equalTo("text/plain"));
|
||||
assertThat(response.get(LAST_MODIFIED),Matchers.notNullValue());
|
||||
|
|
Loading…
Reference in New Issue