[jboss-cvs] JBossAS SVN: r67679 - in trunk/ejb3/src: test/org/jboss/ejb3/test/ejbthree1123 and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Nov 30 19:54:24 EST 2007
Author: ALRubinger
Date: 2007-11-30 19:54:24 -0500 (Fri, 30 Nov 2007)
New Revision: 67679
Added:
trunk/ejb3/src/resources/test/ejbthree1123/
trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1123/DummyInterface.java
trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1123/TestMDB.java
trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1123/TestMDBBase.java
Log:
[EJBTHREE-1123] Added Unit Test (exposes deployment error without actually testing anything)
Added: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1123/DummyInterface.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1123/DummyInterface.java (rev 0)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1123/DummyInterface.java 2007-12-01 00:54:24 UTC (rev 67679)
@@ -0,0 +1,6 @@
+package org.jboss.ejb3.test.ejbthree1123;
+
+public interface DummyInterface
+{
+
+}
Property changes on: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1123/DummyInterface.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1123/TestMDB.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1123/TestMDB.java (rev 0)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1123/TestMDB.java 2007-12-01 00:54:24 UTC (rev 67679)
@@ -0,0 +1,41 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2007, 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.ejbthree1123;
+
+import javax.ejb.ActivationConfigProperty;
+import javax.ejb.MessageDriven;
+import javax.jms.MessageListener;
+
+/**
+ * Test MDB extending from a base implementing MessageListener
+ * while class itself also implements MessageListener
+ *
+ * @author <a href="mailto:andrew.rubinger at redhat.com">ALR</a>
+ * @version $Revision: $
+ */
+ at MessageDriven(activationConfig = {
+ @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
+ @ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/ejbthree1123") })
+public class TestMDB extends TestMDBBase implements MessageListener
+{
+
+}
Property changes on: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1123/TestMDB.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1123/TestMDBBase.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1123/TestMDBBase.java (rev 0)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1123/TestMDBBase.java 2007-12-01 00:54:24 UTC (rev 67679)
@@ -0,0 +1,46 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2007, 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.ejbthree1123;
+
+import javax.jms.Message;
+import javax.jms.MessageListener;
+
+import org.jboss.logging.Logger;
+
+/**
+ * MDB Base implementing MessageListener
+ *
+ * @author <a href="mailto:andrew.rubinger at redhat.com">ALR</a>
+ * @version $Revision: $
+ */
+public abstract class TestMDBBase implements MessageListener, DummyInterface
+{
+ // Class Members
+ private static final Logger log = Logger.getLogger(TestMDBBase.class);
+
+ // MDB Contract
+
+ public void onMessage(Message message)
+ {
+ log.info("Message received: " + message);
+ }
+}
Property changes on: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1123/TestMDBBase.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
More information about the jboss-cvs-commits
mailing list