Changing the port value for each test
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Sun, 08 Nov 2009 10:21:46 +0100
changeset 149a441b02a638a
parent 148 8e72d8596e92
child 150 cbae8c1b80dc
Changing the port value for each test
webidor/src/test/java/cz/xelfi/quoridor/webidor/FinishedGameTest.java
webidor/src/test/java/cz/xelfi/quoridor/webidor/GamesTest.java
webidor/src/test/java/cz/xelfi/quoridor/webidor/resources/ChatTest.java
     1.1 --- a/webidor/src/test/java/cz/xelfi/quoridor/webidor/FinishedGameTest.java	Sun Nov 08 10:16:10 2009 +0100
     1.2 +++ b/webidor/src/test/java/cz/xelfi/quoridor/webidor/FinishedGameTest.java	Sun Nov 08 10:21:46 2009 +0100
     1.3 @@ -41,6 +41,9 @@
     1.4   * @author Jaroslav Tulach <jtulach@netbeans.org>
     1.5   */
     1.6  public class FinishedGameTest extends JerseyTest {
     1.7 +    static {
     1.8 +        System.setProperty("JERSEY_HTTP_PORT", "33435");
     1.9 +    }
    1.10      private File dir;
    1.11  
    1.12      public FinishedGameTest() throws Exception {
     2.1 --- a/webidor/src/test/java/cz/xelfi/quoridor/webidor/GamesTest.java	Sun Nov 08 10:16:10 2009 +0100
     2.2 +++ b/webidor/src/test/java/cz/xelfi/quoridor/webidor/GamesTest.java	Sun Nov 08 10:21:46 2009 +0100
     2.3 @@ -42,6 +42,9 @@
     2.4   * @author Jaroslav Tulach <jtulach@netbeans.org>
     2.5   */
     2.6  public class GamesTest extends Object {
     2.7 +    static {
     2.8 +        System.setProperty("JERSEY_HTTP_PORT", "33436");
     2.9 +    }
    2.10      private File dir;
    2.11  
    2.12      @Before
     3.1 --- a/webidor/src/test/java/cz/xelfi/quoridor/webidor/resources/ChatTest.java	Sun Nov 08 10:16:10 2009 +0100
     3.2 +++ b/webidor/src/test/java/cz/xelfi/quoridor/webidor/resources/ChatTest.java	Sun Nov 08 10:21:46 2009 +0100
     3.3 @@ -50,6 +50,9 @@
     3.4   * @author Jaroslav Tulach <jtulach@netbeans.org>
     3.5   */
     3.6  public class ChatTest extends JerseyTest {
     3.7 +    static {
     3.8 +        System.setProperty("JERSEY_HTTP_PORT", "33437");
     3.9 +    }
    3.10      private File dir;
    3.11  
    3.12      public ChatTest() throws Exception {