[jboss-cvs] JBossAS SVN: r103318 - in projects/ejb3/trunk/testsuite/src/test: resources/test and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Mar 31 08:47:34 EDT 2010
Author: wolfc
Date: 2010-03-31 08:47:33 -0400 (Wed, 31 Mar 2010)
New Revision: 103318
Removed:
projects/ejb3/trunk/testsuite/src/test/resources/test/ejbthree973/
Modified:
projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree973/unit/AnonymousCallerPrincipalTestCase.java
Log:
EJBTHREE-2057: fixed ejbthree973 test
Modified: projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree973/unit/AnonymousCallerPrincipalTestCase.java
===================================================================
--- projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree973/unit/AnonymousCallerPrincipalTestCase.java 2010-03-31 12:46:36 UTC (rev 103317)
+++ projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree973/unit/AnonymousCallerPrincipalTestCase.java 2010-03-31 12:47:33 UTC (rev 103318)
@@ -21,6 +21,14 @@
*/
package org.jboss.ejb3.test.ejbthree973.unit;
+import junit.extensions.TestSetup;
+import junit.framework.Test;
+import org.jboss.ejb3.test.common.EJB3TestCase;
+import org.jboss.ejb3.test.ejbthree973.SpyMe;
+import org.jboss.ejb3.test.ejbthree973.WhoAmI;
+import org.jboss.security.client.SecurityClient;
+import org.jboss.security.client.SecurityClientFactory;
+
import javax.ejb.EJBAccessException;
import javax.ejb.EJBTransactionRolledbackException;
import javax.jms.DeliveryMode;
@@ -32,14 +40,6 @@
import javax.jms.QueueSession;
import javax.jms.TextMessage;
-import junit.framework.Test;
-
-import org.jboss.ejb3.test.ejbthree973.SpyMe;
-import org.jboss.ejb3.test.ejbthree973.WhoAmI;
-import org.jboss.security.client.SecurityClient;
-import org.jboss.security.client.SecurityClientFactory;
-import org.jboss.test.JBossTestCase;
-
/**
* Test to see if we can get a caller principal without running in
* a security domain.
@@ -47,7 +47,7 @@
* @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
* @version $Revision$
*/
-public class AnonymousCallerPrincipalTestCase extends JBossTestCase
+public class AnonymousCallerPrincipalTestCase extends EJB3TestCase
{
public AnonymousCallerPrincipalTestCase(String name)
@@ -147,6 +147,19 @@
public static Test suite() throws Exception
{
- return getDeploySetup(AnonymousCallerPrincipalTestCase.class, "ejbthree973test-service.xml,ejbthree973.jar");
+ return new TestSetup(getDeploySetup(AnonymousCallerPrincipalTestCase.class, "ejbthree973.jar"))
+ {
+ @Override
+ protected void setUp() throws Exception
+ {
+ deployQueue("whoAmI");
+ }
+
+ @Override
+ protected void tearDown() throws Exception
+ {
+ undeployDestinations();
+ }
+ };
}
}
More information about the jboss-cvs-commits
mailing list