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

    assertThat(signInRequest.code()).isEqualTo(UNAUTHORIZED.getStatusCode());
  }