ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sbaill...@apache.org
Subject cvs commit: jakarta-ant/proposal/sandbox/junit/src/testcases/org/apache/tools/ant/taskdefs/optional/junit RJUnitTaskTest.java
Date Sun, 27 Jan 2002 18:28:39 GMT
sbailliez    02/01/27 10:28:39

  Modified:    proposal/sandbox/junit/src/testcases/org/apache/tools/ant/taskdefs/optional/junit/data
                        build-test.xml
               proposal/sandbox/junit/src/testcases/org/apache/tools/ant/taskdefs/optional/junit
                        RJUnitTaskTest.java
  Log:
  Update tests
  
  Revision  Changes    Path
  1.2       +17 -1     jakarta-ant/proposal/sandbox/junit/src/testcases/org/apache/tools/ant/taskdefs/optional/junit/data/build-test.xml
  
  Index: build-test.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/sandbox/junit/src/testcases/org/apache/tools/ant/taskdefs/optional/junit/data/build-test.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- build-test.xml	27 Jan 2002 14:09:33 -0000	1.1
  +++ build-test.xml	27 Jan 2002 18:28:39 -0000	1.2
  @@ -7,7 +7,7 @@
           <rjunit>
               <server port="1234">
                   <formatter type="plain">
  -                    <param name="file" location="d:/junit-test-log.txt"/>
  +                    <param name="file" location="junit-test-log.txt"/>
                   </formatter>
               </server>
               <client host="127.0.0.1"  port="1234">
  @@ -18,9 +18,25 @@
       </target>
   
       <target name="server-only">
  +        <rjunit>
  +            <server port="1234">
  +                <formatter type="plain">
  +                    <param name="file" location="junit-test-log.txt"/>
  +                </formatter>
  +                <formatter type="xml">
  +                    <param name="file" location="junit-test-log.xml"/>
  +                </formatter>
  +            </server>
  +        </rjunit>
       </target>
   
       <target name="client-only">
  +        <rjunit>
  +            <client host="127.0.0.1"  port="1234">
  +                <classpath path="${java.class.path}"/>
  +                <test name="org.apache.tools.ant.taskdefs.optional.junit.data.Test1"/>
  +            </client>
  +        </rjunit>
       </target>
   
   </project>
  
  
  
  1.2       +14 -0     jakarta-ant/proposal/sandbox/junit/src/testcases/org/apache/tools/ant/taskdefs/optional/junit/RJUnitTaskTest.java
  
  Index: RJUnitTaskTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/sandbox/junit/src/testcases/org/apache/tools/ant/taskdefs/optional/junit/RJUnitTaskTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- RJUnitTaskTest.java	27 Jan 2002 14:10:27 -0000	1.1
  +++ RJUnitTaskTest.java	27 Jan 2002 18:28:39 -0000	1.2
  @@ -83,4 +83,18 @@
           executeTarget("server-and-client");
           System.out.println(getFullLog());
       }
  +
  +    public void testStandalone() throws Exception {
  +        // run server first..
  +        Thread thread = new Thread(){
  +            public void run(){
  +                executeTarget("server-only");
  +            }
  +        };
  +        thread.start();
  +
  +        executeTarget("client-only");
  +        System.out.println(getFullLog());
  +        thread.join();
  +    }
   }
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message