[jboss-cvs] JBossAS SVN: r65531 - in trunk/ejb3: src/test/org/jboss/ejb3/test and 2 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Sep 21 10:20:28 EDT 2007
Author: wolfc
Date: 2007-09-21 10:20:28 -0400 (Fri, 21 Sep 2007)
New Revision: 65531
Added:
trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree786/
trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree786/GhostRemover.java
trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree786/GhostRemoverBean.java
trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree786/unit/
trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree786/unit/GhostRemoverTesterUnitTestCase.java
Modified:
trunk/ejb3/build-test.xml
Log:
EJBTHREE-786: unit test
Modified: trunk/ejb3/build-test.xml
===================================================================
--- trunk/ejb3/build-test.xml 2007-09-21 14:02:27 UTC (rev 65530)
+++ trunk/ejb3/build-test.xml 2007-09-21 14:20:28 UTC (rev 65531)
@@ -1929,6 +1929,10 @@
<build-simple-jar name="ejbthree785"/>
</target>
+ <target name="ejbthree786" depends="compile-classes">
+ <build-simple-jar name="ejbthree786"/>
+ </target>
+
<target name="ejbthree832"
description="Builds all jar files."
depends="compile-classes">
@@ -3648,7 +3652,8 @@
<target name="jars" depends="defaultremotebindings, localfromremote, clusteredjms, entityoptimisticlocking, concurrentnaming, propertyreplacement, persistenceunits, appclient, tck5sec, invalidtxmdb, descriptortypo, libdeployment, homeinterface, timestampentity, arjuna, mdbtransactions, unauthenticatedprincipal, clusteredservice, invoker, classloader,
circulardependency, jsp, timerdependency, servicedependency, servlet, stateless14, webservices, ear, ejbthree440,
ejbthree454, ejbthree653, ejbthree670, ejbthree712, ejbthree724, ejbthree751,
- ejbthree785,
+ ejbthree785,
+ ejbthree786,
ejbthree832, ejbthree921, ejbthree936,
ejbthree939,
ejbthree953, ejbthree957, ejbthree959, ejbthree963, ejbthree967, ejbthree971, ejbthree973, ejbthree985, ejbthree986,
@@ -4538,6 +4543,9 @@
<param name="test" value="ejbthree785"/>
</antcall>
<antcall target="test" inheritRefs="true">
+ <param name="test" value="ejbthree786"/>
+ </antcall>
+ <antcall target="test" inheritRefs="true">
<param name="test" value="ejbthree832"/>
</antcall>
<antcall target="test" inheritRefs="true">
Added: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree786/GhostRemover.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree786/GhostRemover.java (rev 0)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree786/GhostRemover.java 2007-09-21 14:20:28 UTC (rev 65531)
@@ -0,0 +1,33 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt 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.ejbthree786;
+
+/**
+ * We want a remove method which returns a String.
+ *
+ * @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ */
+public interface GhostRemover
+{
+ String remove();
+}
Property changes on: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree786/GhostRemover.java
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Revision
Name: svn:eol-style
+ native
Added: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree786/GhostRemoverBean.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree786/GhostRemoverBean.java (rev 0)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree786/GhostRemoverBean.java 2007-09-21 14:20:28 UTC (rev 65531)
@@ -0,0 +1,39 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt 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.ejbthree786;
+
+import javax.ejb.Stateless;
+
+/**
+ * A remove that is not a remove.
+ *
+ * @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ */
+ at Stateless
+public class GhostRemoverBean implements GhostRemover
+{
+ public String remove()
+ {
+ return "Ghost";
+ }
+}
Property changes on: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree786/GhostRemoverBean.java
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Revision
Name: svn:eol-style
+ native
Added: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree786/unit/GhostRemoverTesterUnitTestCase.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree786/unit/GhostRemoverTesterUnitTestCase.java (rev 0)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree786/unit/GhostRemoverTesterUnitTestCase.java 2007-09-21 14:20:28 UTC (rev 65531)
@@ -0,0 +1,54 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt 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.ejbthree786.unit;
+
+import junit.framework.Test;
+
+import org.jboss.ejb3.test.ejbthree786.GhostRemover;
+import org.jboss.test.JBossTestCase;
+
+/**
+ * We want a remove action on a backing bean.
+ *
+ * @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ */
+public class GhostRemoverTesterUnitTestCase extends JBossTestCase
+{
+
+ public GhostRemoverTesterUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ public void testSuper() throws Exception
+ {
+ GhostRemover session = (GhostRemover) getInitialContext().lookup("GhostRemoverBean/remote");
+ String result = session.remove();
+ assertEquals("Ghost", result);
+ }
+
+ public static Test suite() throws Exception
+ {
+ return getDeploySetup(GhostRemoverTesterUnitTestCase.class, "ejbthree786.jar");
+ }
+}
Property changes on: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree786/unit/GhostRemoverTesterUnitTestCase.java
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Revision
Name: svn:eol-style
+ native
More information about the jboss-cvs-commits
mailing list