freemarkerdor/src/test/java/cz/xelfi/quoridor/freemarkerdor/UITest.java
changeset 124 90371f3eb106
parent 121 95dfb04fcee1
child 126 e905cd9b1e4a
     1.1 --- a/freemarkerdor/src/test/java/cz/xelfi/quoridor/freemarkerdor/UITest.java	Sun Oct 11 14:20:19 2009 +0200
     1.2 +++ b/freemarkerdor/src/test/java/cz/xelfi/quoridor/freemarkerdor/UITest.java	Sun Oct 18 15:48:47 2009 +0200
     1.3 @@ -83,7 +83,7 @@
     1.4  
     1.5          Client client = new Client();
     1.6          webResource = client.resource(new URI("http://localhost:9991/"));
     1.7 -        apiResource = client.resource(new URI("http://localhost:9990/api/"));
     1.8 +        apiResource = client.resource(new URI("http://localhost:9990/"));
     1.9      }
    1.10  
    1.11      @AfterClass
    1.12 @@ -107,16 +107,18 @@
    1.13          dir.delete();
    1.14      }
    1.15  
    1.16 -    /**
    1.17 -     * Test if a WADL document is available at the relative path
    1.18 -     * "application.wadl".
    1.19 -     */
    1.20      @Test public void testApplicationWadl() {
    1.21          String serviceWadl = webResource.path("application.wadl").
    1.22                  accept(MediaTypes.WADL).get(String.class);
    1.23          assertTrue(serviceWadl.length() > 0);
    1.24      }
    1.25  
    1.26 +    @Test public void testAPIWadl() {
    1.27 +        String serviceWadl = apiResource.path("application.wadl").
    1.28 +                accept(MediaTypes.WADL).get(String.class);
    1.29 +        assertTrue(serviceWadl.length() > 0);
    1.30 +    }
    1.31 +
    1.32      @Test public void testGetIndexPage() throws Exception {
    1.33          String logJarda = apiResource.path("login").
    1.34              queryParam("name", "Jarda").