[jboss-cvs] JBossAS SVN: r73179 - projects/metadata/trunk/src/test/java/org/jboss/test/metadata/ejb.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu May 8 18:24:51 EDT 2008


Author: alex.loubyansky at jboss.com
Date: 2008-05-08 18:24:51 -0400 (Thu, 08 May 2008)
New Revision: 73179

Added:
   projects/metadata/trunk/src/test/java/org/jboss/test/metadata/ejb/AbstractMappedMetaDataUnitTestCase.java
Log:
JBMETA-21

Added: projects/metadata/trunk/src/test/java/org/jboss/test/metadata/ejb/AbstractMappedMetaDataUnitTestCase.java
===================================================================
--- projects/metadata/trunk/src/test/java/org/jboss/test/metadata/ejb/AbstractMappedMetaDataUnitTestCase.java	                        (rev 0)
+++ projects/metadata/trunk/src/test/java/org/jboss/test/metadata/ejb/AbstractMappedMetaDataUnitTestCase.java	2008-05-08 22:24:51 UTC (rev 73179)
@@ -0,0 +1,50 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.ejb;
+
+import org.jboss.metadata.javaee.spec.EJBLocalReferencesMetaData;
+
+import junit.framework.TestCase;
+
+
+/**
+ * A AbstractMappedMetaDataUnitTestCase.
+ * 
+ * @author <a href="alex at jboss.com">Alexey Loubyansky</a>
+ * @version $Revision: 1.1 $
+ */
+public class AbstractMappedMetaDataUnitTestCase extends TestCase
+{
+   public void testEJBLocalReferencesNullKey() throws Exception
+   {
+      EJBLocalReferencesMetaData refs = new EJBLocalReferencesMetaData();
+      try
+      {
+         refs.get(null);
+         fail("Expected IllegalArgumentException");
+      }
+      catch(IllegalArgumentException e)
+      {
+         assertEquals("No ejb local ref name", e.getMessage());
+      }
+   }
+}




More information about the jboss-cvs-commits mailing list