()
| 973 | } |
| 974 | |
| 975 | @Test |
| 976 | public void notFoundDeprecatedJSON() { |
| 977 | HttpQuery query = NettyMocks.getQuery(tsdb, "/?json"); |
| 978 | query.notFound(); |
| 979 | assertEquals(HttpResponseStatus.NOT_FOUND, query.response().getStatus()); |
| 980 | assertEquals( |
| 981 | "{\"err\":\"Page Not Found\"}", |
| 982 | query.response().getContent().toString(Charset.forName("UTF-8"))); |
| 983 | } |
| 984 | |
| 985 | @Test |
| 986 | public void notFoundDefaultSerializer() { |