[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/readahead/test Main.java

2001-07-09 Thread Jason Dillon

  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  ChangesPath
  1.3   +17 -21jbosstest/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 mailto:[EMAIL PROTECTED]";>danch (Dan Christopherson
  - * @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



[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/readahead/test Main.java

2001-07-08 Thread Scott M Stark

  User: starksm 
  Date: 01/07/08 18:06:06

  Added:   src/main/org/jboss/test/readahead/test Tag: Branch_2_4
Main.java
  Log:
  Merge latest changes from main to the 2.4 branch
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.2.2.1   +1 -1  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.2.2.1
  diff -u -r1.2 -r1.2.2.1
  --- Main.java 2001/07/06 02:29:21 1.2
  +++ Main.java 2001/07/09 01:06:06 1.2.2.1
  @@ -16,7 +16,7 @@
* TestCase driver for the readahead finder tests
* 
* @author mailto:[EMAIL PROTECTED]";>danch (Dan Christopherson
  - * @version $Id: Main.java,v 1.2 2001/07/06 02:29:21 user57 Exp $
  + * @version $Id: Main.java,v 1.2.2.1 2001/07/09 01:06:06 starksm Exp $
* 
* Revision:
*/
  
  
  

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



[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/readahead/test Main.java

2001-07-05 Thread Jason Dillon

  User: user57  
  Date: 01/07/05 19:29:21

  Modified:src/main/org/jboss/test/readahead/test Main.java
  Log:
   o Changed all tests which deploy one or more jars to undeploy after
 testing.
  
  Revision  ChangesPath
  1.2   +32 -10jbosstest/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.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Main.java 2001/06/30 04:38:06 1.1
  +++ Main.java 2001/07/06 02:29:21 1.2
  @@ -2,17 +2,21 @@
   
   import javax.naming.Context;
   import javax.naming.InitialContext;
  -import org.jboss.test.readahead.interfaces.CMPFindTestSessionHome;
  -import org.jboss.test.readahead.interfaces.CMPFindTestSessionRemote;
  +
   import junit.framework.TestCase;
   import junit.framework.Test;
   import junit.framework.TestSuite;
   
  +import org.jboss.test.readahead.interfaces.CMPFindTestSessionHome;
  +import org.jboss.test.readahead.interfaces.CMPFindTestSessionRemote;
  +
  +import org.jboss.test.util.Deploy;
  +
   /**
* TestCase driver for the readahead finder tests
* 
* @author mailto:[EMAIL PROTECTED]";>danch (Dan Christopherson
  - * @version $Id: Main.java,v 1.1 2001/06/30 04:38:06 danch Exp $
  + * @version $Id: Main.java,v 1.2 2001/07/06 02:29:21 user57 Exp $
* 
* Revision:
*/
  @@ -24,10 +28,6 @@
 super(name);
  }
   
  -   public static Test suite() {
  -  return new TestSuite(Main.class);
  -   }
  -   
  protected void tearDown() throws Exception {
 if (rem != null) {
System.out.println("Removing test data");
  @@ -45,8 +45,8 @@
 if (rem != null) 
return;
 
  -  System.out.println("Deploying");
  -  new org.jboss.jmx.client.Deployer().deploy("../deploy/readahead.jar");
  +  // System.out.println("Deploying");
  +  // new org.jboss.jmx.client.Deployer().deploy("../deploy/readahead.jar");
 
 System.out.println("Creating test data");
 Context ctx = new InitialContext();
  @@ -68,4 +68,26 @@
  public void testAddressByCity() throws Exception {
 rem.addressByCity();
  }
  -}
  \ No newline at end of file
  +
  +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);
  +}
  +
  +return suite;
  +}
  +   
  +}
  
  
  

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



[JBoss-dev] CVS update: jbosstest/src/main/org/jboss/test/readahead/test Main.java

2001-06-29 Thread danch

  User: danch   
  Date: 01/06/29 21:38:06

  Added:   src/main/org/jboss/test/readahead/test Main.java
  Log:
  Added tests for readahead functionality. Note that this only checks to see if they 
work: it doesn't verify that it's actually performing well
  
  Revision  ChangesPath
  1.1  jbosstest/src/main/org/jboss/test/readahead/test/Main.java
  
  Index: Main.java
  ===
  package org.jboss.test.readahead.test;
  
  import javax.naming.Context;
  import javax.naming.InitialContext;
  import org.jboss.test.readahead.interfaces.CMPFindTestSessionHome;
  import org.jboss.test.readahead.interfaces.CMPFindTestSessionRemote;
  import junit.framework.TestCase;
  import junit.framework.Test;
  import junit.framework.TestSuite;
  
  /**
   * TestCase driver for the readahead finder tests
   * 
   * @author mailto:[EMAIL PROTECTED]";>danch (Dan Christopherson
   * @version $Id: Main.java,v 1.1 2001/06/30 04:38:06 danch Exp $
   * 
   * Revision:
   */
  public class Main extends TestCase {
  
 CMPFindTestSessionRemote rem = null;
 
 public Main(String name) {
super(name);
 }
  
 public static Test suite() {
return new TestSuite(Main.class);
 }
 
 protected void tearDown() throws Exception {
if (rem != null) {
   System.out.println("Removing test data");
   rem.removeTestData();
   
   rem.remove();
   
   rem = null;
}
 }

 protected void setUp()
throws Exception
 {
if (rem != null) 
   return;

System.out.println("Deploying");
new org.jboss.jmx.client.Deployer().deploy("../deploy/readahead.jar");

System.out.println("Creating test data");
Context ctx = new InitialContext();
CMPFindTestSessionHome home = 
   (CMPFindTestSessionHome)ctx.lookup("CMPFindTestSession");
rem = home.create();

rem.createTestData();
 }
 
 public void testFindAll() throws Exception {
rem.testFinder();
 }
 
 public void testFindByCity() throws Exception {
rem.testByCity();
 }
 
 public void testAddressByCity() throws Exception {
rem.addressByCity();
 }
  }
  
  

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