[jboss-cvs] JBossAS SVN: r68066 - trunk/testsuite/src/main/org/jboss/test/deployers/seam/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sat Dec 8 13:46:16 EST 2007


Author: alesj
Date: 2007-12-08 13:46:15 -0500 (Sat, 08 Dec 2007)
New Revision: 68066

Added:
   trunk/testsuite/src/main/org/jboss/test/deployers/seam/test/SeamNumberguessExampleTestCase.java
Modified:
   trunk/testsuite/src/main/org/jboss/test/deployers/seam/test/SeamExampleTestCase.java
Log:
Adding Seam numberguess example app to testsuite.

Modified: trunk/testsuite/src/main/org/jboss/test/deployers/seam/test/SeamExampleTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/deployers/seam/test/SeamExampleTestCase.java	2007-12-08 16:08:39 UTC (rev 68065)
+++ trunk/testsuite/src/main/org/jboss/test/deployers/seam/test/SeamExampleTestCase.java	2007-12-08 18:46:15 UTC (rev 68066)
@@ -49,8 +49,15 @@
 
    protected static Test deploy(Class clazz) throws Exception
    {
+      return deploy(clazz, true);
+   }
+
+   protected static Test deploy(Class clazz, boolean includeDS) throws Exception
+   {
       String name = getExampleName(clazz);
-      String deployments = String.format(exampleDS, name) + "," + String.format(exampleEar, name);
+      String deployments = String.format(exampleEar, name);
+      if (includeDS)
+         deployments = String.format(exampleDS, name) + "," + deployments;
       return getDeploySetup(clazz, deployments);
    }
 

Added: trunk/testsuite/src/main/org/jboss/test/deployers/seam/test/SeamNumberguessExampleTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/deployers/seam/test/SeamNumberguessExampleTestCase.java	                        (rev 0)
+++ trunk/testsuite/src/main/org/jboss/test/deployers/seam/test/SeamNumberguessExampleTestCase.java	2007-12-08 18:46:15 UTC (rev 68066)
@@ -0,0 +1,42 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., 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.test.deployers.seam.test;
+
+import junit.framework.Test;
+
+/**
+ * Test Seam Numberguess example.
+ *
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class SeamNumberguessExampleTestCase extends SeamExampleTestCase
+{
+   public SeamNumberguessExampleTestCase(String test)
+   {
+      super(test);
+   }
+
+   public static Test suite() throws Exception
+   {
+      return deploy(SeamNumberguessExampleTestCase.class, false);
+   }
+}




More information about the jboss-cvs-commits mailing list