[jboss-cvs] JBossAS SVN: r93942 - in projects/ejb3/trunk/testsuite/src/test: java/org/jboss/ejb3/test/changexml/unit and 1 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Sep 23 03:18:36 EDT 2009


Author: wolfc
Date: 2009-09-23 03:18:35 -0400 (Wed, 23 Sep 2009)
New Revision: 93942

Added:
   projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/changexml/ShouldNotBeHereException.java
Modified:
   projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/changexml/TesterBean.java
   projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/changexml/unit/ChangeXMLUnitTestCase.java
   projects/ejb3/trunk/testsuite/src/test/resources/known-issues.xml
Log:
EJBTHREE-1927: added changexml to known-issues.xml

Added: projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/changexml/ShouldNotBeHereException.java
===================================================================
--- projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/changexml/ShouldNotBeHereException.java	                        (rev 0)
+++ projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/changexml/ShouldNotBeHereException.java	2009-09-23 07:18:35 UTC (rev 93942)
@@ -0,0 +1,39 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, 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.ejb3.test.changexml;
+
+import javax.ejb.ApplicationException;
+
+/**
+ * @author <a href="mailto:cdewolf at redhat.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ */
+ at ApplicationException
+public class ShouldNotBeHereException extends RuntimeException
+{
+   private static final long serialVersionUID = 1L;
+
+   public ShouldNotBeHereException(String message)
+   {
+      super(message);
+   }
+}

Modified: projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/changexml/TesterBean.java
===================================================================
--- projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/changexml/TesterBean.java	2009-09-23 06:20:37 UTC (rev 93941)
+++ projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/changexml/TesterBean.java	2009-09-23 07:18:35 UTC (rev 93942)
@@ -72,6 +72,6 @@
       {
          return;
       }
-      throw new RuntimeException("Should not be here!");
+      throw new ShouldNotBeHereException("Should not be here!");
    }
 }

Modified: projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/changexml/unit/ChangeXMLUnitTestCase.java
===================================================================
--- projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/changexml/unit/ChangeXMLUnitTestCase.java	2009-09-23 06:20:37 UTC (rev 93941)
+++ projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/changexml/unit/ChangeXMLUnitTestCase.java	2009-09-23 07:18:35 UTC (rev 93942)
@@ -25,6 +25,7 @@
 
 import junit.framework.Test;
 
+import org.jboss.ejb3.test.changexml.ShouldNotBeHereException;
 import org.jboss.ejb3.test.changexml.TesterRemote;
 import org.jboss.security.client.SecurityClient;
 import org.jboss.security.client.SecurityClientFactory;
@@ -59,6 +60,10 @@
          File file = new File(deployDir + "/" + "changexml.jar"); 
          tester.runTest(file.toURL());
       }
+      catch(ShouldNotBeHereException e)
+      {
+         fail(e.getMessage());
+      }
       finally
       {
          client.logout();

Modified: projects/ejb3/trunk/testsuite/src/test/resources/known-issues.xml
===================================================================
--- projects/ejb3/trunk/testsuite/src/test/resources/known-issues.xml	2009-09-23 06:20:37 UTC (rev 93941)
+++ projects/ejb3/trunk/testsuite/src/test/resources/known-issues.xml	2009-09-23 07:18:35 UTC (rev 93942)
@@ -11,6 +11,8 @@
 		- ignore : do nothing
 		- show : show the issue on System.err
 	</comment>
+  <!-- EJBTHREE-1927 -->
+  <entry key="org.jboss.ejb3.test.changexml.unit.ChangeXMLUnitTestCase.testChangeXML">show</entry>
 	<!-- EJBTHREE-1627 -->
 	<entry key="org.jboss.ejb3.test.deployer.unit.DeployerUnitTestCase.testDeployEjb3ExtensionOnly">show</entry>
 	<!-- EJBTHREE-1040 -->
@@ -51,7 +53,4 @@
   <!-- EJBTHREE-1053 -->
   <entry key="org.jboss.ejb3.test.ejbthree1053.unit.ConsistentPassivatedStateUnitTestCase.testConsistentPassivatedState">show</entry>
   
-  <!-- EJBTHREE-1927 -->
-  <entry key="org.jboss.ejb3.test.changexml.unit.ChangeXMLUnitTestCase.testChangeXML">show</entry>
-  
 </properties>




More information about the jboss-cvs-commits mailing list