[jboss-cvs] JBossAS SVN: r74982 - in projects/metadata/trunk/src/test/java/org/jboss/test/metadata/annotation/ejb3: defaultinterface and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Jun 24 09:51:53 EDT 2008
Author: wolfc
Date: 2008-06-24 09:51:52 -0400 (Tue, 24 Jun 2008)
New Revision: 74982
Added:
projects/metadata/trunk/src/test/java/org/jboss/test/metadata/annotation/ejb3/defaultinterface/SerializableBean.java
Modified:
projects/metadata/trunk/src/test/java/org/jboss/test/metadata/annotation/ejb3/JBossAnnotationEjb3UnitTestCase.java
Log:
JBMETA-15: unit test for a bean that implements Serializable
Modified: projects/metadata/trunk/src/test/java/org/jboss/test/metadata/annotation/ejb3/JBossAnnotationEjb3UnitTestCase.java
===================================================================
--- projects/metadata/trunk/src/test/java/org/jboss/test/metadata/annotation/ejb3/JBossAnnotationEjb3UnitTestCase.java 2008-06-24 13:38:23 UTC (rev 74981)
+++ projects/metadata/trunk/src/test/java/org/jboss/test/metadata/annotation/ejb3/JBossAnnotationEjb3UnitTestCase.java 2008-06-24 13:51:52 UTC (rev 74982)
@@ -36,7 +36,6 @@
import javax.ejb.Timer;
import javax.ejb.TransactionAttributeType;
-import org.jboss.ejb3.annotation.RemoteBinding;
import org.jboss.metadata.annotation.creator.ejb.jboss.JBoss50Creator;
import org.jboss.metadata.annotation.finder.AnnotationFinder;
import org.jboss.metadata.annotation.finder.DefaultAnnotationFinder;
@@ -91,6 +90,7 @@
import org.jboss.metadata.javaee.spec.SecurityRoleMetaData;
import org.jboss.metadata.javaee.spec.SecurityRolesMetaData;
import org.jboss.test.metadata.annotation.ejb3.defaultinterface.DefaultInterface;
+import org.jboss.test.metadata.annotation.ejb3.defaultinterface.ParentInterface;
import org.jboss.test.metadata.annotation.ejb3.multiview.Multiview21Remote;
import org.jboss.test.metadata.annotation.ejb3.multiview.Multiview3Remote;
import org.jboss.test.metadata.annotation.ejb3.multiview.MultiviewHome;
@@ -490,6 +490,9 @@
assertEquals(1, bean.getBusinessLocals().size());
assertTrue(bean.getBusinessLocals().contains(DefaultInterface.class.getName()));
+
+ bean = (JBossSessionBeanMetaData) metaData.getEnterpriseBean("SerializableBean");
+ assertTrue(bean.getBusinessLocals().contains(ParentInterface.class.getName()));
}
@ScanPackage("org.jboss.test.metadata.annotation.ejb3.jbmeta30")
Added: projects/metadata/trunk/src/test/java/org/jboss/test/metadata/annotation/ejb3/defaultinterface/SerializableBean.java
===================================================================
--- projects/metadata/trunk/src/test/java/org/jboss/test/metadata/annotation/ejb3/defaultinterface/SerializableBean.java (rev 0)
+++ projects/metadata/trunk/src/test/java/org/jboss/test/metadata/annotation/ejb3/defaultinterface/SerializableBean.java 2008-06-24 13:51:52 UTC (rev 74982)
@@ -0,0 +1,39 @@
+/*
+ * 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.metadata.annotation.ejb3.defaultinterface;
+
+import java.io.Serializable;
+
+import javax.ejb.Local;
+import javax.ejb.Stateless;
+
+/**
+ * @author <a href="mailto:cdewolf at redhat.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ */
+ at Stateless
+ at Local
+public class SerializableBean extends Parent implements Serializable
+{
+ private static final long serialVersionUID = 1L;
+
+}
More information about the jboss-cvs-commits
mailing list