[jboss-cvs] JBossAS SVN: r80946 - trunk/testsuite/src/main/org/jboss/test/securitymgr/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Nov 13 14:07:01 EST 2008


Author: anil.saldhana at jboss.com
Date: 2008-11-13 14:07:01 -0500 (Thu, 13 Nov 2008)
New Revision: 80946

Added:
   trunk/testsuite/src/main/org/jboss/test/securitymgr/test/EJB3SpecUnitTestCase.java
Modified:
   trunk/testsuite/src/main/org/jboss/test/securitymgr/test/SecurityUnitTestCase.java
Log:
JBAS-4154: add an ejb3 test

Added: trunk/testsuite/src/main/org/jboss/test/securitymgr/test/EJB3SpecUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/securitymgr/test/EJB3SpecUnitTestCase.java	                        (rev 0)
+++ trunk/testsuite/src/main/org/jboss/test/securitymgr/test/EJB3SpecUnitTestCase.java	2008-11-13 19:07:01 UTC (rev 80946)
@@ -0,0 +1,35 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors. 
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.securitymgr.test;
+
+/**
+ * EJB3 security tests (Security Manager version)
+ * @author Anil.Saldhana at redhat.com
+ * @since Nov 13, 2008
+ */
+public class EJB3SpecUnitTestCase extends org.jboss.test.security.test.EJB3SpecUnitTestCase
+{
+   public EJB3SpecUnitTestCase(String name)
+   {
+      super(name);
+   } 
+}

Modified: trunk/testsuite/src/main/org/jboss/test/securitymgr/test/SecurityUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/securitymgr/test/SecurityUnitTestCase.java	2008-11-13 19:06:22 UTC (rev 80945)
+++ trunk/testsuite/src/main/org/jboss/test/securitymgr/test/SecurityUnitTestCase.java	2008-11-13 19:07:01 UTC (rev 80946)
@@ -126,7 +126,8 @@
       }
       catch(Exception e)
       {
-         fail("Was not able to call Bad.getSubject");
+         log.error("Was not able to call Bad.getSubject", e);
+         fail("Was not able to call Bad.getSubject"+e.getLocalizedMessage());
       }
       bean.remove();
    }




More information about the jboss-cvs-commits mailing list