Resource handler tests expect status 404 for directory in jar file

Issue: SPR-16832
This commit is contained in:
Juergen Hoeller
2018-05-30 00:31:35 +02:00
parent 616a40adb6
commit f3e860e8f1
2 changed files with 7 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2017 the original author or authors.
* Copyright 2002-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -494,8 +494,7 @@ public class ResourceHttpRequestHandlerTests {
public void directoryInJarFile() throws Exception {
this.request.setAttribute(HandlerMapping.PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE, "underscorejs/");
this.handler.handleRequest(this.request, this.response);
assertEquals(200, this.response.getStatus());
assertEquals(0, this.response.getContentLength());
assertEquals(404, this.response.getStatus());
}
@Test