Propagate Exception if not HttpResponseException

pull/43/head
Andrew Gaul 2015-02-20 17:22:47 -08:00
rodzic 613da2f3ec
commit c8e4279853
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -393,6 +393,9 @@ public final class S3ProxyTest {
// UncheckedExecutionException?
HttpResponseException hre = Throwables2.getFirstThrowableOfType(
re, HttpResponseException.class);
if (hre == null) {
throw re;
}
assertThat(hre.getResponse().getStatusCode()).isEqualTo(
HttpServletResponse.SC_NOT_IMPLEMENTED);
}