From portal-commits at lists.jboss.org Thu Oct 11 05:36:25 2007 Content-Type: multipart/mixed; boundary="===============8102549727522157179==" MIME-Version: 1.0 From: portal-commits at lists.jboss.org To: portal-commits at lists.jboss.org Subject: [portal-commits] JBoss Portal SVN: r8599 - modules/test/trunk/unit/src/main/org/jboss/test/unit/runner. Date: Thu, 11 Oct 2007 05:36:24 -0400 Message-ID: --===============8102549727522157179== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: julien(a)jboss.com Date: 2007-10-11 05:36:24 -0400 (Thu, 11 Oct 2007) New Revision: 8599 Added: modules/test/trunk/unit/src/main/org/jboss/test/unit/runner/GenericTestR= unnerTests.java Log: forgot to commit a class Added: modules/test/trunk/unit/src/main/org/jboss/test/unit/runner/GenericT= estRunnerTests.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- modules/test/trunk/unit/src/main/org/jboss/test/unit/runner/GenericTest= RunnerTests.java (rev 0) +++ modules/test/trunk/unit/src/main/org/jboss/test/unit/runner/GenericTest= RunnerTests.java 2007-10-11 09:36:24 UTC (rev 8599) @@ -0,0 +1,69 @@ +/*************************************************************************= ***** + * 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.runner; + +import org.jboss.unit.runner.impl.generic.GenericTestRunner; +import org.jboss.unit.runner.model.generic.GenericTestSuiteDef; +import org.jboss.unit.driver.TestDriver; +import org.jboss.unit.driver.DriverResponse; +import org.jboss.unit.driver.DriverCommand; +import org.jboss.unit.driver.response.EndTestResponse; +import org.jboss.unit.info.TestInfo; +import org.jboss.unit.info.impl.SimpleTestSuiteInfo; +import org.jboss.unit.TestId; + +/** + * @author Julien Viet + * @version $Revision: 1.1 $ + */ +public class GenericTestRunnerTests +{ + + public static void main(String[] args) + { + + + GenericTestSuiteDef suite =3D new GenericTestSuiteDef(Blah.class.get= Name()); +// suite.addTest(); + + GenericTestRunner runner =3D new GenericTestRunner(suite); + runner.run(); + + } + + + public static class Blah implements TestDriver + { + + public TestInfo getInfo() + { + return new SimpleTestSuiteInfo("blah"); + } + + public DriverResponse invoke(TestId id, DriverCommand command) + { + return new EndTestResponse(); + } + } + +} --===============8102549727522157179==--