(final InvocationOnMock args)
| 113 | handleHttpRpc(req, |
| 114 | new Answer<ChannelFuture>() { |
| 115 | public ChannelFuture answer(final InvocationOnMock args) |
| 116 | throws Throwable { |
| 117 | DefaultHttpResponse response = |
| 118 | (DefaultHttpResponse)args.getArguments()[0]; |
| 119 | assertEquals(HttpResponseStatus.OK, response.getStatus()); |
| 120 | assertNull(response.headers().get(HttpHeaders.ACCESS_CONTROL_ALLOW_ORIGIN)); |
| 121 | return null; |
| 122 | } |
| 123 | } |
| 124 | ); |
| 125 |