User: user57  
  Date: 01/07/09 19:34:05

  Modified:    src/main/org/jboss/test/readahead/test Main.java
  Log:
   o changed all deploy tests to deploy as a test and to not call System.exit().
     this should allow reports to be generated for tests that fail to deploy.
   o modified run_tests.xml basic-security-tests to not-halt on error, so that
     test-and-report will produce reports even if the security tests fail.
  
  Revision  Changes    Path
  1.3       +17 -21    jbosstest/src/main/org/jboss/test/readahead/test/Main.java
  
  Index: Main.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/readahead/test/Main.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Main.java 2001/07/06 02:29:21     1.2
  +++ Main.java 2001/07/10 02:34:05     1.3
  @@ -16,7 +16,7 @@
    * TestCase driver for the readahead finder tests
    * 
    * @author <a href="mailto:[EMAIL PROTECTED]";>danch (Dan Christopherson</a>
  - * @version $Id: Main.java,v 1.2 2001/07/06 02:29:21 user57 Exp $
  + * @version $Id: Main.java,v 1.3 2001/07/10 02:34:05 user57 Exp $
    * 
    * Revision:
    */
  @@ -69,25 +69,21 @@
         rem.addressByCity();
      }
   
  -    public static Test suite() {
  -        TestSuite suite = new TestSuite();
  -     
  -        try {
  -            String filename = "../deploy/readahead.jar";
  -            System.out.println("Deploying...");
  -            Deploy.deploy(filename);
  -
  -            suite.addTest(new TestSuite(Main.class));
  -
  -            // add a test case to undeploy our support applications
  -            suite.addTest(new Deploy.Undeployer(filename));
  -        }
  -        catch (Throwable t) {
  -            t.printStackTrace();
  -            System.exit(0);
  -        }
  +   /**
  +    * Setup the test suite.
  +    */
  +   public static Test suite() {
  +      TestSuite suite = new TestSuite();
  +        
  +      // add a test case to deploy our support applications
  +      String filename = "readahead.jar";
  +      suite.addTest(new Deploy.Deployer(filename));
   
  -        return suite;
  -    }
  -   
  +      suite.addTest(new TestSuite(Main.class));
  +
  +      // add a test case to undeploy our support applications
  +      suite.addTest(new Deploy.Undeployer(filename));
  +
  +      return suite;
  +   }
   }
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to