[jboss-cvs] JBossAS SVN: r75684 - in projects/metadata/trunk/src/test/java/org/jboss/metadata/test/ejb3: legacy0_1_7 and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Jul 11 08:52:47 EDT 2008


Author: wolfc
Date: 2008-07-11 08:52:47 -0400 (Fri, 11 Jul 2008)
New Revision: 75684

Added:
   projects/metadata/trunk/src/test/java/org/jboss/metadata/test/ejb3/legacy0_1_7/
   projects/metadata/trunk/src/test/java/org/jboss/metadata/test/ejb3/legacy0_1_7/EjbDeploymentSummaryTestCase.java
Log:
Regression in ejb3-core 0.1.7

Added: projects/metadata/trunk/src/test/java/org/jboss/metadata/test/ejb3/legacy0_1_7/EjbDeploymentSummaryTestCase.java
===================================================================
--- projects/metadata/trunk/src/test/java/org/jboss/metadata/test/ejb3/legacy0_1_7/EjbDeploymentSummaryTestCase.java	                        (rev 0)
+++ projects/metadata/trunk/src/test/java/org/jboss/metadata/test/ejb3/legacy0_1_7/EjbDeploymentSummaryTestCase.java	2008-07-11 12:52:47 UTC (rev 75684)
@@ -0,0 +1,56 @@
+/*
+ * 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.metadata.test.ejb3.legacy0_1_7;
+
+import junit.framework.TestCase;
+
+import org.jboss.metadata.ejb.jboss.jndipolicy.spi.EjbDeploymentSummary;
+
+/**
+ * Emulate the ejb3-core 0.1.7 behavior with regards to EjbDeploymentSummary.
+ * See ProxyFactoryHelper#getDeploymentSummaryFromContainer.
+ * 
+ * @author <a href="mailto:cdewolf at redhat.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ */
+public class EjbDeploymentSummaryTestCase extends TestCase
+{
+   @SuppressWarnings("deprecation")
+   public void test1()
+   {
+      // Construct Deployment Summary
+      EjbDeploymentSummary summary = new EjbDeploymentSummary();
+      summary.setEjbName("EjbName");
+      summary.setService(true);
+      summary.setStateful(true);
+      summary.setDeploymentName("DeploymentName");
+      summary.setBeanClassName("BeanClassName");
+      summary.setDeploymentScopeBaseName("ScopeName");
+      
+      assertEquals("EjbName", summary.getEjbName());
+      assertEquals(true, summary.isService());
+      assertEquals(true, summary.isStateful());
+      assertEquals("DeploymentName", summary.getDeploymentName());
+      assertEquals("BeanClassName", summary.getBeanClassName());
+      assertEquals("ScopeName", summary.getDeploymentScopeBaseName());
+   }
+}




More information about the jboss-cvs-commits mailing list