Author: julien(a)jboss.com
Date: 2007-10-20 10:17:56 -0400 (Sat, 20 Oct 2007)
New Revision: 8723
Added:
modules/test/trunk/unit/src/main/org/jboss/test/unit/sample/TestDriver2.java
Modified:
modules/test/trunk/unit/src/resources/test/org/jboss/test/unit/sample/f1.xml
Log:
adding use case for simple test case executed
Copied: modules/test/trunk/unit/src/main/org/jboss/test/unit/sample/TestDriver2.java (from
rev 8722, modules/test/trunk/unit/src/main/org/jboss/test/unit/sample/TestDriver1.java)
===================================================================
--- modules/test/trunk/unit/src/main/org/jboss/test/unit/sample/TestDriver2.java
(rev 0)
+++
modules/test/trunk/unit/src/main/org/jboss/test/unit/sample/TestDriver2.java 2007-10-20
14:17:56 UTC (rev 8723)
@@ -0,0 +1,49 @@
+/******************************************************************************
+ * JBoss, a division of Red Hat *
+ * 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.test.unit.sample;
+
+import org.jboss.unit.TestId;
+import org.jboss.unit.driver.AbstractTestDriver;
+import org.jboss.unit.driver.DriverCommand;
+import org.jboss.unit.driver.DriverResponse;
+import org.jboss.unit.driver.response.EndTestResponse;
+import org.jboss.unit.info.TestInfo;
+import org.jboss.unit.info.impl.SimpleTestCaseInfo;
+
+/**
+ * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
+ * @version $Revision: 1.1 $
+ */
+public class TestDriver2 extends AbstractTestDriver
+{
+
+ public TestInfo getInfo()
+ {
+ return new SimpleTestCaseInfo("test");
+ }
+
+ public DriverResponse invoke(TestId id, DriverCommand command)
+ {
+ return new EndTestResponse();
+ }
+}
\ No newline at end of file
Modified: modules/test/trunk/unit/src/resources/test/org/jboss/test/unit/sample/f1.xml
===================================================================
---
modules/test/trunk/unit/src/resources/test/org/jboss/test/unit/sample/f1.xml 2007-10-20
13:59:49 UTC (rev 8722)
+++
modules/test/trunk/unit/src/resources/test/org/jboss/test/unit/sample/f1.xml 2007-10-20
14:17:56 UTC (rev 8723)
@@ -27,4 +27,7 @@
<generic>
<class name="org.jboss.test.unit.sample.TestDriver1"/>
</generic>
+ <generic>
+ <class name="org.jboss.test.unit.sample.TestDriver2"/>
+ </generic>
</jboss-unit>