@Test public void testIsKieServerAccessibleWhenStatusCodeIs500() { when(response.getStatusCode()).thenReturn(500); assertFalse(presenter.isKieServerAccessible(response)); }
boolean isKieServerAccessible(final Response response) { final int statusCode = response.getStatusCode(); return statusCode == SC_OK || statusCode == SC_UNAUTHORIZED; }
FooterPresenter { boolean isKieServerAccessible(final Response response) { final int statusCode = response.getStatusCode(); return statusCode == SC_OK || statusCode == SC_UNAUTHORIZED; } }
FooterPresenter { boolean isKieServerAccessible(final Response response) { final int statusCode = response.getStatusCode(); return statusCode == SC_OK || statusCode == SC_UNAUTHORIZED; } @Inject  FooterPresenter(final View view); }
FooterPresenter { boolean isKieServerAccessible(final Response response) { final int statusCode = response.getStatusCode(); return statusCode == SC_OK || statusCode == SC_UNAUTHORIZED; } @Inject  FooterPresenter(final View view); View getView(); void setup(final String url,
                      final String version); }
FooterPresenter { boolean isKieServerAccessible(final Response response) { final int statusCode = response.getStatusCode(); return statusCode == SC_OK || statusCode == SC_UNAUTHORIZED; } @Inject  FooterPresenter(final View view); View getView(); void setup(final String url,
                      final String version);  }