Author: ozizka(a)redhat.com
Date: 2009-06-16 13:25:17 -0400 (Tue, 16 Jun 2009)
New Revision: 529
Modified:
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ejb/Ejb30Test.java
Log:
Ejb30 tests - added MDB, SLB, SFB, JPA entity test cases (deployment)
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-15
18:53:22 UTC (rev 528)
+++
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ejb/Ejb30Test.java 2009-06-16
17:25:17 UTC (rev 529)
@@ -21,11 +21,14 @@
*/
package org.jboss.jopr.jsfunit.as5.app.ejb;
+import java.io.IOException;
import junit.framework.Test;
import junit.framework.TestSuite;
+import org.jboss.jopr.jsfunit.exceptions.HtmlElementNotFoundException;
import org.jboss.jopr.jsfunit.util.EmbJoprTestToolkit.*;
import org.jboss.jopr.jsfunit.AppConstants.DeployableTypes;
+import org.jboss.jopr.jsfunit.exceptions.EmbJoprTestException;
import org.jboss.jopr.jsfunit.util.EmbJoprTestToolkit.*;
/**
@@ -70,9 +73,68 @@
}
+ // --- Additional tests --- //
+ public void testEjb30DeployMDB() throws IOException, EmbJoprTestException {
+ final String DEPLOYABLE_NAME = EJB3_MDB;
+ try {
+ String appPath = ejtt.getTestDataDir() +"/"+ DEPLOYABLE_NAME;
+ ejtt.deployment.deployViaEmbJopr(APP_TYPE, appPath);
+ ejtt.deployment.undeployViaEmbJopr(APP_TYPE, DEPLOYABLE_NAME);
+ }
+ finally {
+ }
+
+
+ }
+
+ public void testEjb30DeploySLB() throws IOException, EmbJoprTestException {
+
+ final String DEPLOYABLE_NAME = EJB3_SLB;
+
+ try {
+ String appPath = ejtt.getTestDataDir() +"/"+ DEPLOYABLE_NAME;
+ ejtt.deployment.deployViaEmbJopr(APP_TYPE, appPath);
+ ejtt.deployment.undeployViaEmbJopr(APP_TYPE, DEPLOYABLE_NAME);
+ }
+ finally {
+ }
+ }
+
+
+ public void testEjb30DeploySFB() throws IOException, EmbJoprTestException {
+
+ final String DEPLOYABLE_NAME = EJB3_SFB;
+
+ try {
+ String appPath = ejtt.getTestDataDir() +"/"+ DEPLOYABLE_NAME;
+ ejtt.deployment.deployViaEmbJopr(APP_TYPE, appPath);
+ ejtt.deployment.undeployViaEmbJopr(APP_TYPE, DEPLOYABLE_NAME);
+ }
+ finally {
+ }
+ }
+
+
+ public void testEjb30DeployJPAEntity() throws IOException, EmbJoprTestException {
+
+ final String DEPLOYABLE_NAME = EJB3_ENTITY;
+
+ try {
+ String appPath = ejtt.getTestDataDir() +"/"+ DEPLOYABLE_NAME;
+ ejtt.deployment.deployViaEmbJopr(APP_TYPE, appPath);
+ ejtt.deployment.undeployViaEmbJopr(APP_TYPE, DEPLOYABLE_NAME);
+ }
+ finally {
+ }
+ }
+
+
+
+
+
}// class
Show replies by date