webidor/src/test/java/cz/xelfi/quoridor/webidor/FinishedGameTest.java
changeset 83 8dd8b041a3e1
parent 82 9ac7acee7d9f
child 124 90371f3eb106
     1.1 --- a/webidor/src/test/java/cz/xelfi/quoridor/webidor/FinishedGameTest.java	Sun Sep 13 16:48:54 2009 +0200
     1.2 +++ b/webidor/src/test/java/cz/xelfi/quoridor/webidor/FinishedGameTest.java	Sun Sep 13 20:07:32 2009 +0200
     1.3 @@ -76,6 +76,13 @@
     1.4          }
     1.5          dir.delete();
     1.6      }
     1.7 +    @Test public void testNotLoggedIn() {
     1.8 +        webResource = webResource.path("api");
     1.9 +        String status  = webResource.path("login").queryParam("id", "not-logged-in").
    1.10 +                accept(MediaType.TEXT_PLAIN).get(String.class);
    1.11 +        assertEquals("Nobody is logged in", "", status);
    1.12 +    }
    1.13 +
    1.14  
    1.15      @Test public void testCreateAGame() throws Exception {
    1.16          webResource = webResource.path("api");