axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From whitl...@apache.org
Subject cvs commit: xml-axis-wsif/java/test/addressbook AddressBookTest.java
Date Mon, 21 Oct 2002 09:47:44 GMT
whitlock    2002/10/21 02:47:44

  Modified:    java/test/jms JmsTest.java
               java/test/addressbook AddressBookTest.java
  Log:
  Only start the listeners that are needed
  
  Revision  Changes    Path
  1.13      +7 -4      xml-axis-wsif/java/test/jms/JmsTest.java
  
  Index: JmsTest.java
  ===================================================================
  RCS file: /home/cvs/xml-axis-wsif/java/test/jms/JmsTest.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- JmsTest.java	3 Oct 2002 10:45:56 -0000	1.12
  +++ JmsTest.java	21 Oct 2002 09:47:44 -0000	1.13
  @@ -147,10 +147,13 @@
           super(name);
       }
   
  -	public static void main(String[] args) {
  -	   TestUtilities.startListeners();	
  -	   junit.textui.TestRunner.run (suite());
  -	   TestUtilities.stopListeners();	
  +    public static void main(String[] args) {
  +        TestUtilities.startListeners(
  +            TestUtilities.ADDRESSBOOK_LISTENER
  +                | TestUtilities.NATIVEJMS_LISTENER);
  +
  +        junit.textui.TestRunner.run(suite());
  +        TestUtilities.stopListeners();
       }
   
       public static Test suite() {
  
  
  
  1.17      +9 -5      xml-axis-wsif/java/test/addressbook/AddressBookTest.java
  
  Index: AddressBookTest.java
  ===================================================================
  RCS file: /home/cvs/xml-axis-wsif/java/test/addressbook/AddressBookTest.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- AddressBookTest.java	27 Sep 2002 09:14:33 -0000	1.16
  +++ AddressBookTest.java	21 Oct 2002 09:47:44 -0000	1.17
  @@ -113,11 +113,15 @@
           super(name);
       }
   
  -	public static void main(String[] args) {
  -	    TestUtilities.startListeners();	
  -	    junit.textui.TestRunner.run (suite());
  -        TestUtilities.stopListeners();	
  -	}
  +    public static void main(String[] args) {
  +        TestUtilities.startListeners(
  +            TestUtilities.ADDRESSBOOK_LISTENER
  +                | TestUtilities.ASYNC_LISTENER
  +                | TestUtilities.NATIVEJMS_LISTENER);
  +
  +        junit.textui.TestRunner.run(suite());
  +        TestUtilities.stopListeners();
  +    }
   
       public static Test suite() {
           return new TestSuite(AddressBookTest.class);
  
  
  

Mime
View raw message