webidor/src/test/java/cz/xelfi/quoridor/webidor/QuoridorTest.java
changeset 135 232e42153945
parent 124 90371f3eb106
child 145 ac9bd9be5263
     1.1 --- a/webidor/src/test/java/cz/xelfi/quoridor/webidor/QuoridorTest.java	Sun Oct 18 15:48:47 2009 +0200
     1.2 +++ b/webidor/src/test/java/cz/xelfi/quoridor/webidor/QuoridorTest.java	Sun Oct 25 14:55:51 2009 +0100
     1.3 @@ -42,7 +42,6 @@
     1.4  import java.util.Map;
     1.5  import javax.ws.rs.core.MediaType;
     1.6  import org.junit.Test;
     1.7 -import org.w3c.dom.Document;
     1.8  import static org.junit.Assert.*;
     1.9  
    1.10  /**
    1.11 @@ -88,10 +87,6 @@
    1.12          dir.delete();
    1.13      }
    1.14  
    1.15 -    /**
    1.16 -     * Test if a WADL document is available at the relative path
    1.17 -     * "application.wadl".
    1.18 -     */
    1.19      @Test public void testApplicationWadl() {
    1.20          String serviceWadl = webResource.path("application.wadl").
    1.21                  accept(MediaTypes.WADL).get(String.class);
    1.22 @@ -125,10 +120,6 @@
    1.23  
    1.24          GenericType<List<GameId>> gType = new GenericType<List<GameId>>() {};
    1.25  
    1.26 -        Document doc = webResource.path("games").accept("text/xml").get(Document.class);
    1.27 -        assertNotNull("Can read games in form of XML", doc);
    1.28 -        assertEquals("Name is correct", "gameIds", doc.getDocumentElement().getNodeName());
    1.29 -        assertEquals("One child", 1, doc.getDocumentElement().getChildNodes().getLength());
    1.30          List<GameId> games = webResource.path("games").accept("application/json").get(gType);
    1.31          assertEquals("One game", 1, games.size());
    1.32          assertEquals("Same white", "Jarda", games.get(0).getWhite());