File tree Expand file tree Collapse file tree
src/test/java/com/retailsvc/http Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33import static java .net .HttpURLConnection .HTTP_BAD_REQUEST ;
44import static java .net .HttpURLConnection .HTTP_NOT_FOUND ;
5+ import static java .net .HttpURLConnection .HTTP_NO_CONTENT ;
56import static java .net .HttpURLConnection .HTTP_OK ;
67import static org .assertj .core .api .Assertions .assertThat ;
78
@@ -80,7 +81,7 @@ void exactExtraStillWorks() throws Exception {
8081 .build ();
8182 var client = httpClient ()) {
8283
83- assertThat (get (client , s , "/alive" ).statusCode ()).isEqualTo (204 );
84+ assertThat (get (client , s , "/alive" ).statusCode ()).isEqualTo (HTTP_NO_CONTENT );
8485 assertThat (get (client , s , "/alive232" ).statusCode ()).isEqualTo (HTTP_NOT_FOUND );
8586 }
8687 }
@@ -114,6 +115,7 @@ void traversalReturns400() throws Exception {
114115 // assertThat(get(client, s, "/files/x%0ay").statusCode()).isEqualTo(HTTP_BAD_REQUEST);
115116 assertThat (get (client , s , "/files//x" ).statusCode ()).isEqualTo (HTTP_BAD_REQUEST );
116117 assertThat (get (client , s , "/files/." ).statusCode ()).isEqualTo (HTTP_BAD_REQUEST );
118+ assertThat (get (client , s , "/files/./x" ).statusCode ()).isEqualTo (HTTP_BAD_REQUEST );
117119 }
118120 }
119121
You can’t perform that action at this time.
0 commit comments