Author: bdaw
Date: 2008-01-28 18:36:34 -0500 (Mon, 28 Jan 2008)
New Revision: 9626
Added:
modules/test/trunk/tooling/examples/ant/
modules/test/trunk/tooling/examples/ant/build.xml
modules/test/trunk/tooling/examples/ant/jboss-unit.xml
modules/test/trunk/tooling/examples/ant/lib/
modules/test/trunk/tooling/examples/ant/lib/jboss-unit-tooling-ant.jar
modules/test/trunk/tooling/examples/ant/lib/jboss-unit-tooling-core.jar
modules/test/trunk/tooling/examples/ant/lib/jboss-unit.jar
modules/test/trunk/tooling/examples/ant/src/
modules/test/trunk/tooling/examples/ant/src/org/
modules/test/trunk/tooling/examples/ant/src/org/jboss/
modules/test/trunk/tooling/examples/ant/src/org/jboss/test/
modules/test/trunk/tooling/examples/ant/src/org/jboss/test/unit/
modules/test/trunk/tooling/examples/ant/src/org/jboss/test/unit/tooling/
modules/test/trunk/tooling/examples/ant/src/org/jboss/test/unit/tooling/TestSimple.java
Log:
dummy ant example
Added: modules/test/trunk/tooling/examples/ant/build.xml
===================================================================
--- modules/test/trunk/tooling/examples/ant/build.xml (rev 0)
+++ modules/test/trunk/tooling/examples/ant/build.xml 2008-01-28 23:36:34 UTC (rev 9626)
@@ -0,0 +1,47 @@
+<?xml version="1.0"?>
+<project name="portlet-integration-test">
+
+ <target name="prepare">
+
+ <path id="jboss-unit">
+ <pathelement location="./lib/jboss-unit.jar"/>
+ </path>
+
+ <path id="jboss-unit-tooling">
+ <pathelement location="./lib/jboss-unit-tooling-ant.jar"/>
+ <pathelement location="./lib/jboss-unit-tooling-core.jar"/>
+ </path>
+
+ </target>
+
+ <target name="compile" depends="prepare">
+ <mkdir dir="./output"/>
+
+ <javac srcdir="./src" destdir="./output">
+ <classpath>
+ <path refid="jboss-unit"/>
+ </classpath>
+ </javac>
+
+ </target>
+
+
+ <target name="test" depends="compile">
+
+ <taskdef name="jboss-unit"
classname="org.jboss.unit.tooling.ant.JBossUnitTask"
classpathref="jboss-unit-tooling"/>
+
+ <jboss-unit>
+ <tests config="./jboss-unit.xml"/>
+ <classpath>
+ <path refid="jboss-unit"/>
+ <pathelement location="./output"/>
+ </classpath>
+ </jboss-unit>
+
+ </target>
+
+ <target name="clean">
+ <delete dir="./output" />
+ </target>
+
+</project>
Added: modules/test/trunk/tooling/examples/ant/jboss-unit.xml
===================================================================
--- modules/test/trunk/tooling/examples/ant/jboss-unit.xml (rev
0)
+++ modules/test/trunk/tooling/examples/ant/jboss-unit.xml 2008-01-28 23:36:34 UTC (rev
9626)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jboss-unit
+ xmlns="urn:jboss:jboss-unit:1.0"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="urn:jboss:jboss-unit:1.0 jboss-unit_1_0.xsd">
+ <pojo>
+ <test>
+ <class name="org.jboss.test.unit.tooling.TestSimple"/>
+ </test>
+ </pojo>
+</jboss-unit>
\ No newline at end of file
Added: modules/test/trunk/tooling/examples/ant/lib/jboss-unit-tooling-ant.jar
===================================================================
(Binary files differ)
Property changes on:
modules/test/trunk/tooling/examples/ant/lib/jboss-unit-tooling-ant.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: modules/test/trunk/tooling/examples/ant/lib/jboss-unit-tooling-core.jar
===================================================================
(Binary files differ)
Property changes on:
modules/test/trunk/tooling/examples/ant/lib/jboss-unit-tooling-core.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: modules/test/trunk/tooling/examples/ant/lib/jboss-unit.jar
===================================================================
(Binary files differ)
Property changes on: modules/test/trunk/tooling/examples/ant/lib/jboss-unit.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
modules/test/trunk/tooling/examples/ant/src/org/jboss/test/unit/tooling/TestSimple.java
===================================================================
---
modules/test/trunk/tooling/examples/ant/src/org/jboss/test/unit/tooling/TestSimple.java
(rev 0)
+++
modules/test/trunk/tooling/examples/ant/src/org/jboss/test/unit/tooling/TestSimple.java 2008-01-28
23:36:34 UTC (rev 9626)
@@ -0,0 +1,53 @@
+/*
+* 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.tooling;
+
+import org.jboss.unit.api.Assert;
+import org.jboss.unit.api.pojo.annotations.Test;
+
+/**
+ * @author <a href="mailto:boleslaw dot dawidowicz at redhat anotherdot
com">Boleslaw Dawidowicz</a>
+ * @version : 0.1 $
+ */
+public class TestSimple
+{
+
+ @Test
+ public void testOne()
+ {
+ Assert.assertTrue(true);
+ }
+
+ @Test
+ public void testTwo()
+ {
+ Assert.assertFalse(true);
+ }
+
+ @Test
+ public void testThree()
+ {
+ Assert.assertFalse(false);
+ }
+
+}