()
| 781 | } |
| 782 | |
| 783 | @Test |
| 784 | public void internalErrorDeprecated() { |
| 785 | HttpQuery query = NettyMocks.getQuery(tsdb, ""); |
| 786 | try { |
| 787 | throw new Exception("Internal Error"); |
| 788 | } catch (Exception e) { |
| 789 | query.internalError(e); |
| 790 | } |
| 791 | assertEquals(HttpResponseStatus.INTERNAL_SERVER_ERROR, |
| 792 | query.response().getStatus()); |
| 793 | assertEquals( |
| 794 | "<!DOCTYPE html>", |
| 795 | query.response().getContent().toString(Charset.forName("UTF-8")) |
| 796 | .substring(0, 15)); |
| 797 | } |
| 798 | |
| 799 | @Test |
| 800 | public void internalErrorDeprecatedJSON() { |
nothing calls this directly
no test coverage detected