User: peterbraswell
Date: 01/04/14 06:34:53
Modified: src/main/org/jboss/test/cts/test BmpTest.java
StatefulSessionTest.java
Log:
Modified some failure messages.
Revision Changes Path
1.2 +2 -4 jbosstest/src/main/org/jboss/test/cts/test/BmpTest.java
Index: BmpTest.java
===================================================================
RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/cts/test/BmpTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- BmpTest.java 2001/03/06 20:41:06 1.1
+++ BmpTest.java 2001/04/14 13:34:52 1.2
@@ -26,8 +26,8 @@
/**
* Class BmpTest
*
- * @author $Author: osh $
- * @version $Revision: 1.1 $
+ * @author $Author: peterbraswell $
+ * @version $Revision: 1.2 $
*/
public class BmpTest
@@ -218,9 +218,7 @@
} catch(java.rmi.NoSuchObjectException nsoex) {
System.out.println("OK");
} catch(Exception ex) {
- System.err.println("FAILED");
- ex.printStackTrace();
- fail("Got Exception: expecting java.rmi.NoSuchObjectException" );
+ fail("Got Exception: expecting NoSuchObjectException" + ex.toString() );
}
} catch (Exception ex) {
ex.printStackTrace();
1.6 +8 -13
jbosstest/src/main/org/jboss/test/cts/test/StatefulSessionTest.java
Index: StatefulSessionTest.java
===================================================================
RCS file:
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/cts/test/StatefulSessionTest.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- StatefulSessionTest.java 2001/01/31 20:26:53 1.5
+++ StatefulSessionTest.java 2001/04/14 13:34:52 1.6
@@ -1,7 +1,5 @@
package org.jboss.test.cts.test;
-
-
import java.io.*;
import java.util.*;
import java.lang.reflect.*;
@@ -19,8 +17,8 @@
/**
*
* @see <related>
- * @author $Author: osh $
- * @version $Revision: 1.5 $
+ * @author $Author: peterbraswell $
+ * @version $Revision: 1.6 $
*/
public class StatefulSessionTest
@@ -173,22 +171,23 @@
( StatefulSessionHome ) ctx.lookup("ejbcts/StatefulSessionBean");
sessionBean = home.create();
-
+ System.out.println("OK");
+ System.out.println("Call remove using a primary key");
home.remove(new AccountPK("pk"));
+
}
catch (javax.ejb.RemoveException rmEx)
{
-
+ System.out.println("OK, got a remove exception!" );
// Expected behavior
return;
}
catch (Exception ex)
{
- ex.printStackTrace();
- fail("Expected javax.ejb.RemoveException, got Unknown Exception");
+ fail("[EJB 1.1, p42] Expected 'RemoveException', detail:" + ex.toString());
}
- fail("Expected javax.ejb.RemoveException, got NO exception");
+ fail("Expected 'RemoveException', got NO exception");
System.out.println(
"**************************************************************");
}
@@ -443,17 +442,14 @@
}
catch (javax.naming.NamingException ne)
{
- ne.printStackTrace();
fail("Naming exception failure");
}
catch (java.rmi.ServerException se)
{
- se.printStackTrace();
fail("Server exception");
}
catch (java.rmi.RemoteException re)
{
- re.printStackTrace();
fail("Remote exception");
}
finally
@@ -467,7 +463,6 @@
}
catch (Exception ex)
{
- ex.printStackTrace();
fail("Caught an unknown exception in testProbeBeanContex");
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development