Read it again, and no not the same, but could also integrate that!
On 15 Dec 2013 02:45, "Antonio Bertucci" <notifications@github.com> wrote:

> In core/src/test/java/uk/co/ataulm/mijur/core/api/ImgurShould.java:
>
> >
> > -        String expected = PROPERTY_VALUE_CLIENT_ID_PREFIX + ApiConstants.API_CLIENT_ID;
> > -        String actual = connection.getRequestProperty(PROPERTY_KEY_AUTHORISATION);
> > -        assertThat(expected.equals(actual), is(true));
> > +        assertTrue(image.success == true);
> > +    }
> > +
> > +    @Test(expected = RetrofitError.class)
>
> What you should do in this case is set your own ErrorHandler for the
> RestAdapter, and generate custom exceptions from the thrown RetrofitErrorinstance, case by case. This implies not only checking the HTTP status code
> of the request, but also parsing the body of the Retrofit Response and
> bubble up the information you received in the JSon using the custom
> exceptions.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/ataulm/mijur/pull/6/files#r8353807>
> .
>