User: starksm
Date: 01/07/18 13:10:37
Modified: src/main/org/jboss/test/perf/test Tag: Branch_2_4 Setup.java
Log:
Dump out any error seen during setup/teardown
Revision Changes Path
No revision
No revision
1.2.2.2 +27 -11 jbosstest/src/main/org/jboss/test/perf/test/Setup.java
Index: Setup.java
===================================================================
RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/perf/test/Setup.java,v
retrieving revision 1.2.2.1
retrieving revision 1.2.2.2
diff -u -r1.2.2.1 -r1.2.2.2
--- Setup.java 2001/07/14 21:27:36 1.2.2.1
+++ Setup.java 2001/07/18 20:10:37 1.2.2.2
@@ -23,7 +23,7 @@
/** Setup utility class.
@author [EMAIL PROTECTED]
- @version $Revision: 1.2.2.1 $
+ @version $Revision: 1.2.2.2 $
*/
public class Setup extends TestSetup
{
@@ -41,20 +41,36 @@
protected void setUp() throws Exception
{
System.out.println("+++ Performing the TestSuite setup");
- if( isSecure )
- login();
- Deploy.deploy(filename);
- createEntityBeans(1000);
- createEntity2Beans(1000);
+ try
+ {
+ if( isSecure )
+ login();
+ Deploy.deploy(filename);
+ createEntityBeans(1000);
+ createEntity2Beans(1000);
+ }
+ catch(Exception e)
+ {
+ e.printStackTrace();
+ throw e;
+ }
}
protected void tearDown() throws Exception
{
System.out.println("+++ Performing the TestSuite tear down");
- removeEntityBeans(1000);
- removeEntity2Beans(1000);
- Deploy.undeploy(filename);
- if( isSecure )
- logout();
+ try
+ {
+ removeEntityBeans(1000);
+ removeEntity2Beans(1000);
+ Deploy.undeploy(filename);
+ if( isSecure )
+ logout();
+ }
+ catch(Exception e)
+ {
+ e.printStackTrace();
+ throw e;
+ }
}
private void createEntityBeans(int max) throws Exception
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development