Author: ozizka(a)redhat.com
Date: 2009-06-16 16:42:37 -0400 (Tue, 16 Jun 2009)
New Revision: 533
Modified:
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ejb/Ejb30Test.java
Log:
EJB3 tests updated.
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ejb/Ejb30Test.java
===================================================================
---
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ejb/Ejb30Test.java 2009-06-16
20:10:07 UTC (rev 532)
+++
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ejb/Ejb30Test.java 2009-06-16
20:42:37 UTC (rev 533)
@@ -84,7 +84,11 @@
try {
String appPath = ejtt.getTestDataDir() + EJBS_SUB_DIR + DEPLOYABLE_NAME;
ejtt.deployment.deployViaEmbJopr(APP_TYPE, appPath);
+ String expectedMsg = "Resource " + DEPLOYABLE_NAME + " created
successfully!";
+ checkClientAndServerMessages(expectedMsg, expectedMsg, false);
ejtt.deployment.undeployViaEmbJopr(APP_TYPE, DEPLOYABLE_NAME);
+ expectedMsg = "Successfully deleted EJB3 JAR
'"+DEPLOYABLE_NAME+"'.";
+ checkClientAndServerMessages(expectedMsg, expectedMsg, false);
}
finally {
}
@@ -99,7 +103,11 @@
try {
String appPath = ejtt.getTestDataDir() + EJBS_SUB_DIR + DEPLOYABLE_NAME;
ejtt.deployment.deployViaEmbJopr(APP_TYPE, appPath);
+ String expectedMsg = "Resource " + DEPLOYABLE_NAME + " created
successfully!";
+ checkClientAndServerMessages(expectedMsg, expectedMsg, false);
ejtt.deployment.undeployViaEmbJopr(APP_TYPE, DEPLOYABLE_NAME);
+ expectedMsg = "Successfully deleted EJB3 JAR
'"+DEPLOYABLE_NAME+"'.";
+ checkClientAndServerMessages(expectedMsg, expectedMsg, false);
}
finally {
}
@@ -113,7 +121,11 @@
try {
String appPath = ejtt.getTestDataDir() + EJBS_SUB_DIR + DEPLOYABLE_NAME;
ejtt.deployment.deployViaEmbJopr(APP_TYPE, appPath);
+ String expectedMsg = "Resource " + DEPLOYABLE_NAME + " created
successfully!";
+ checkClientAndServerMessages(expectedMsg, expectedMsg, false);
ejtt.deployment.undeployViaEmbJopr(APP_TYPE, DEPLOYABLE_NAME);
+ expectedMsg = "Successfully deleted EJB3 JAR
'"+DEPLOYABLE_NAME+"'.";
+ checkClientAndServerMessages(expectedMsg, expectedMsg, false);
}
finally {
}
@@ -126,8 +138,14 @@
try {
String appPath = ejtt.getTestDataDir() + EJBS_SUB_DIR + DEPLOYABLE_NAME;
+
ejtt.deployment.deployViaEmbJopr(APP_TYPE, appPath);
+ String expectedMsg = "Resource " + DEPLOYABLE_NAME + " created
successfully!";
+ checkClientAndServerMessages(expectedMsg, expectedMsg, false);
+
ejtt.deployment.undeployViaEmbJopr(APP_TYPE, DEPLOYABLE_NAME);
+ expectedMsg = "Successfully deleted EJB3 JAR
'"+DEPLOYABLE_NAME+"'.";
+ checkClientAndServerMessages(expectedMsg, expectedMsg, false);
}
finally {
}
Show replies by date