@Test public void signOut_shouldReturnFalse_ifSignsOutWithoutBeingSignedIn() throws Exception { HttpRequest signOutRequest = signOutRequest("TOKEN"); assertThat(signOutRequest.code()).isEqualTo(UNAUTHORIZED.getStatusCode()); assertThat(signOutRequest.body()).isEqualTo("false"); }
@Test public void signIn_shouldReturnUnauthorizedStatusCode_ifNotLoggedIn() throws Exception { HttpRequest signInRequest = signInRequest("notLoggedInEmail", "pass"); assertThat(signInRequest.code()).isEqualTo(UNAUTHORIZED.getStatusCode()); }