[jboss-svn-commits] JBL Code SVN: r5100 - in labs/jbossesb/branches/refactor/ESBCore: . common/tests listeners listeners/tests listeners/tests/src listeners/tests/src/org listeners/tests/src/org/jboss listeners/tests/src/org/jboss/soa listeners/tests/src/org/jboss/soa/esb listeners/tests/src/org/jboss/soa/esb/listeners listeners/tests/src/org/jboss/soa/esb/listeners/tests processors processors/tests processors/tests/src processors/tests/src/org processors/tests/src/org/jboss processors/tests/src/org/jboss/soa processors/tests/src/org/jboss/soa/esb processors/tests/src/org/jboss/soa/esb/processors processors/tests/src/org/jboss/soa/esb/processors/tests services services/tests services/tests/src services/tests/src/org services/tests/src/org/jboss services/tests/src/org/jboss/soa services/tests/src/org/jboss/soa/esb services/tests/src/org/jboss/soa/esb/services services/tests/src/org/jboss/soa/esb/services/tests
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Fri Jul 14 16:22:41 EDT 2006
Author: arvinder
Date: 2006-07-14 16:22:30 -0400 (Fri, 14 Jul 2006)
New Revision: 5100
Added:
labs/jbossesb/branches/refactor/ESBCore/listeners/tests/
labs/jbossesb/branches/refactor/ESBCore/listeners/tests/build.xml
labs/jbossesb/branches/refactor/ESBCore/listeners/tests/src/
labs/jbossesb/branches/refactor/ESBCore/listeners/tests/src/org/
labs/jbossesb/branches/refactor/ESBCore/listeners/tests/src/org/jboss/
labs/jbossesb/branches/refactor/ESBCore/listeners/tests/src/org/jboss/soa/
labs/jbossesb/branches/refactor/ESBCore/listeners/tests/src/org/jboss/soa/esb/
labs/jbossesb/branches/refactor/ESBCore/listeners/tests/src/org/jboss/soa/esb/listeners/
labs/jbossesb/branches/refactor/ESBCore/listeners/tests/src/org/jboss/soa/esb/listeners/tests/
labs/jbossesb/branches/refactor/ESBCore/listeners/tests/src/org/jboss/soa/esb/listeners/tests/DummyUnitTest.java
labs/jbossesb/branches/refactor/ESBCore/processors/tests/
labs/jbossesb/branches/refactor/ESBCore/processors/tests/build.xml
labs/jbossesb/branches/refactor/ESBCore/processors/tests/src/
labs/jbossesb/branches/refactor/ESBCore/processors/tests/src/org/
labs/jbossesb/branches/refactor/ESBCore/processors/tests/src/org/jboss/
labs/jbossesb/branches/refactor/ESBCore/processors/tests/src/org/jboss/soa/
labs/jbossesb/branches/refactor/ESBCore/processors/tests/src/org/jboss/soa/esb/
labs/jbossesb/branches/refactor/ESBCore/processors/tests/src/org/jboss/soa/esb/processors/
labs/jbossesb/branches/refactor/ESBCore/processors/tests/src/org/jboss/soa/esb/processors/tests/
labs/jbossesb/branches/refactor/ESBCore/processors/tests/src/org/jboss/soa/esb/processors/tests/DummyUnitTest.java
labs/jbossesb/branches/refactor/ESBCore/services/tests/
labs/jbossesb/branches/refactor/ESBCore/services/tests/build.xml
labs/jbossesb/branches/refactor/ESBCore/services/tests/src/
labs/jbossesb/branches/refactor/ESBCore/services/tests/src/org/
labs/jbossesb/branches/refactor/ESBCore/services/tests/src/org/jboss/
labs/jbossesb/branches/refactor/ESBCore/services/tests/src/org/jboss/soa/
labs/jbossesb/branches/refactor/ESBCore/services/tests/src/org/jboss/soa/esb/
labs/jbossesb/branches/refactor/ESBCore/services/tests/src/org/jboss/soa/esb/services/
labs/jbossesb/branches/refactor/ESBCore/services/tests/src/org/jboss/soa/esb/services/tests/
labs/jbossesb/branches/refactor/ESBCore/services/tests/src/org/jboss/soa/esb/services/tests/DummyUnitTest.java
Modified:
labs/jbossesb/branches/refactor/ESBCore/build.xml
labs/jbossesb/branches/refactor/ESBCore/common/tests/build.xml
labs/jbossesb/branches/refactor/ESBCore/listeners/build.xml
labs/jbossesb/branches/refactor/ESBCore/processors/build.xml
labs/jbossesb/branches/refactor/ESBCore/services/build.xml
Log:
Initial setup of testing infrastructure and dummy test files.
Modified: labs/jbossesb/branches/refactor/ESBCore/build.xml
===================================================================
--- labs/jbossesb/branches/refactor/ESBCore/build.xml 2006-07-14 17:25:08 UTC (rev 5099)
+++ labs/jbossesb/branches/refactor/ESBCore/build.xml 2006-07-14 20:22:30 UTC (rev 5100)
@@ -46,11 +46,9 @@
<target name="org.jboss.esb.core.test" depends="org.jboss.esb.core.compile" description="Test subprojects">
<echo message="Testing submodules"/>
<ant dir="common" target="org.jboss.esb.common.test"/>
- <!-- Uncomment when ready
<ant dir="listeners" target="org.jboss.esb.listeners.test"/>
<ant dir="processors" target="org.jboss.esb.processors.test"/>
<ant dir="services" target="org.jboss.esb.services.test"/>
- -->
</target>
@@ -81,21 +79,38 @@
<!-- Clean all -->
<!-- =================================================================== -->
<target name="clean" description="Clean dist directory and cleans subprojects">
- <ant dir="common" target="clean"/>
- <ant dir="listeners" target="clean"/>
- <ant dir="processors" target="clean"/>
- <ant dir="services" target="clean"/>
- <ant dir="tests" target="clean"/>
+ <delete dir="${org.jboss.esb.internal.dest}/dist"/>
+ <!--
+ for now I am going to delete the build directory as each module builds
+ to a common place, so calling clean on each module does not make sense,
+ that is unless we later configure the clean task to delete <module>
+ specific classes
+ -->
+ <!--
+ <ant dir="common" target="clean"/>
+ <ant dir="listeners" target="clean"/>
+ <ant dir="processors" target="clean"/>
+ <ant dir="services" target="clean"/>
+ -->
+ <!-- tests are now per module, this will be cleaned up later
+ <ant dir="tests" target="clean"/>
+ -->
</target>
<target name="purge" depends="clean">
- <delete dir="${org.jboss.esb.internal.dest}/dist"/>
-
- <ant dir="common" target="purge"/>
+ <!--
+ <delete dir="${org.jboss.esb.internal.dest}/dist"/>
+ -->
+ <!-- see comment above w.r.t clean and where module are build to -->
+ <!--
+ <ant dir="common" target="purge"/>
<ant dir="listeners" target="purge"/>
<ant dir="processors" target="purge"/>
<ant dir="services" target="purge"/>
- <ant dir="tests" target="purge"/>
+ -->
+ <!-- tests are now per module, this will be cleaned up later
+ <ant dir="tests" target="purge"/>
+ -->
</target>
<!-- =================================================================== -->
Modified: labs/jbossesb/branches/refactor/ESBCore/common/tests/build.xml
===================================================================
--- labs/jbossesb/branches/refactor/ESBCore/common/tests/build.xml 2006-07-14 17:25:08 UTC (rev 5099)
+++ labs/jbossesb/branches/refactor/ESBCore/common/tests/build.xml 2006-07-14 20:22:30 UTC (rev 5100)
@@ -67,7 +67,7 @@
<formatter type="xml"/>
<batchtest todir="${org.jboss.esb.tests.report.dir}">
<fileset dir="${org.jboss.esb.tests.bin.dir}">
- <include name="**/**/**/**/**UnitTest.class"/>
+ <include name="**/**/common/**/**UnitTest.class"/>
</fileset>
</batchtest>
<classpath>
@@ -96,7 +96,7 @@
<formatter type="xml"/>
<batchtest todir="${org.jboss.esb.tests.report.dir}">
<fileset dir="${org.jboss.esb.tests.bin.dir}">
- <include name="**/**/**FuncTest.class"/>
+ <include name="**/**/common/**/**FuncTest.class"/>
</fileset>
</batchtest>
<classpath>
Modified: labs/jbossesb/branches/refactor/ESBCore/listeners/build.xml
===================================================================
--- labs/jbossesb/branches/refactor/ESBCore/listeners/build.xml 2006-07-14 17:25:08 UTC (rev 5099)
+++ labs/jbossesb/branches/refactor/ESBCore/listeners/build.xml 2006-07-14 20:22:30 UTC (rev 5100)
@@ -40,7 +40,18 @@
<delete dir="${org.jboss.esb.listeners.bin.dir}"/>
</target>
- <target name="org.jboss.esb.listeners.compile" depends="org.jboss.esb.listeners.prepare"
+
+
+ <target name="org.jboss.esb.listeners.compile">
+ <!-- Compile listeners -->
+ <antcall target="org.jboss.esb.listeners.internal.compile"/>
+ <!-- Compile listener tests -->
+ <ant inheritAll="true" dir="tests" target="org.jboss.esb.listeners.tests.compile"/>
+ </target>
+
+
+
+ <target name="org.jboss.esb.listeners.internal.compile" depends="org.jboss.esb.listeners.prepare"
description="Compile all classes">
<javac
@@ -66,6 +77,14 @@
/>
</target>
- <target name="all" depends="recompile,jar" />
+
+ <target name="org.jboss.esb.listeners.test" description="Run tests for this module">
+ <!-- Compile listener tests -->
+ <ant dir="tests" target="org.jboss.esb.listeners.internal.test"/>
+ </target>
+
+
+ <target name="all" depends="recompile,jar" />
+
</project>
Added: labs/jbossesb/branches/refactor/ESBCore/listeners/tests/build.xml
===================================================================
--- labs/jbossesb/branches/refactor/ESBCore/listeners/tests/build.xml 2006-07-14 17:25:08 UTC (rev 5099)
+++ labs/jbossesb/branches/refactor/ESBCore/listeners/tests/build.xml 2006-07-14 20:22:30 UTC (rev 5100)
@@ -0,0 +1,117 @@
+<?xml version="1.0"?>
+<project name="build.listeners.tests" default="org.jboss.esb.listeners.tests.compile" basedir=".">
+
+ <property name="org.jboss.esb.tests.bin.dir" value="${org.jboss.esb.internal.dest}/tests"/>
+ <property name="org.jboss.esb.tests.report.dir" value="${org.jboss.esb.internal.dest}/tests/junit"/>
+ <property name="org.jboss.esb.core.bin.dir" value="${org.jboss.esb.internal.dest}/classes"/>
+ <property name="org.jboss.esb.tests.src.dir" value="${basedir}/src"/>
+ <property name="org.jboss.esb.root.dir" value="../.."/>
+ <property environment="env"/>
+
+ <property name="org.jboss.esb.ext.lib.dir" value="${org.jboss.esb.root.dir}/lib/ext"/>
+ <condition property="org.jboss.esb.ext.lib.dir" value="{org.jboss.esb.jboss.home}/client">
+ <equals arg1="${org.jboss.esb.frominstall}" arg2="yes"/>
+ </condition>
+
+ <path id="org.jboss.esb.tests.base.classpath">
+ <fileset dir="../${org.jboss.esb.ext.lib.dir}"
+ includes="activation.jar jbossall-client.jar log4j.jar mail.jar junit.jar"/>
+ <pathelement location="${org.jboss.esb.core.bin.dir}"/>
+ </path>
+
+ <target name="org.jboss.esb.tests.init">
+ <tstamp>
+ <format property="TODAY" pattern="d-MM-yy"/>
+ </tstamp>
+
+ <mkdir dir="${org.jboss.esb.tests.bin.dir}"/>
+ <mkdir dir="${org.jboss.esb.tests.report.dir}"/>
+ </target>
+
+ <target name="clean"/>
+
+ <target name="purge" depends="clean">
+ <delete dir="${org.jboss.esb.tests.bin.dir}"/>
+ </target>
+
+ <target name="org.jboss.esb.listeners.tests.compile" if="org.jboss.esb.buildtests" depends="org.jboss.esb.tests.init">
+
+ <javac
+ destdir="${org.jboss.esb.tests.bin.dir}"
+ classpathref="org.jboss.esb.tests.base.classpath"
+ debug="${org.jboss.esb.debug}"
+ optimize="${org.jboss.esb.optimize}"
+ >
+ <src path="${org.jboss.esb.tests.src.dir}"/>
+ </javac>
+
+ </target>
+
+
+ <!-- ====================================================================== -->
+ <!-- T E S T -->
+ <!-- ====================================================================== -->
+ <target name="org.jboss.esb.listeners.internal.test">
+ <antcall target="org.jboss.esb.listeners.internal.test.unit"/>
+ <antcall target="org.jboss.esb.listeners.internal.test.functional"/>
+ </target>
+
+
+ <!-- ====================================================================== -->
+ <!-- U N I T T E S T S -->
+ <!-- ====================================================================== -->
+ <target name="org.jboss.esb.listeners.internal.test.unit">
+ <echo message="Running tests for module"/>
+ <junit printsummary="yes" haltonerror="yes" haltonfailure="yes" showoutput="no" fork="true">
+ <formatter type="plain" usefile="false"/>
+ <formatter type="xml"/>
+ <batchtest todir="${org.jboss.esb.tests.report.dir}">
+ <fileset dir="${org.jboss.esb.tests.bin.dir}">
+ <include name="**/**/listeners/**/**UnitTest.class"/>
+ </fileset>
+ </batchtest>
+ <classpath>
+ <path refid="org.jboss.esb.tests.base.classpath"/>
+ <pathelement location="${org.jboss.esb.core.bin.dir}"/>
+ <pathelement location="${org.jboss.esb.tests.bin.dir}"/>
+ </classpath>
+ </junit>
+ <junitreport>
+ <fileset dir="${org.jboss.esb.tests.report.dir}">
+ <include name="*.xml"/>
+ </fileset>
+ <report format="frames" todir="${org.jboss.esb.tests.report.dir}"/>
+ <report format="noframes" todir="${org.jboss.esb.tests.report.dir}"/>
+ </junitreport>
+ </target>
+
+
+ <!-- ====================================================================== -->
+ <!-- F U NC T I O N A L T E S T S -->
+ <!-- ====================================================================== -->
+ <target name="org.jboss.esb.listeners.internal.test.functional">
+ <echo message="Running tests for module"/>
+ <junit printsummary="yes" haltonerror="yes" haltonfailure="yes" showoutput="no" fork="true">
+ <formatter type="plain" usefile="false"/>
+ <formatter type="xml"/>
+ <batchtest todir="${org.jboss.esb.tests.report.dir}">
+ <fileset dir="${org.jboss.esb.tests.bin.dir}">
+ <include name="**/**/listeners/**/**FuncTest.class"/>
+ </fileset>
+ </batchtest>
+ <classpath>
+ <path refid="org.jboss.esb.tests.base.classpath"/>
+ <pathelement location="${org.jboss.esb.core.bin.dir}"/>
+ <pathelement location="${org.jboss.esb.tests.bin.dir}"/>
+ </classpath>
+ </junit>
+ <junitreport>
+ <fileset dir="${org.jboss.esb.tests.report.dir}">
+ <include name="*.xml"/>
+ </fileset>
+ <report format="frames" todir="${org.jboss.esb.tests.report.dir}"/>
+ <report format="noframes" todir="${org.jboss.esb.tests.report.dir}"/>
+ </junitreport>
+ </target>
+
+</project>
Added: labs/jbossesb/branches/refactor/ESBCore/listeners/tests/src/org/jboss/soa/esb/listeners/tests/DummyUnitTest.java
===================================================================
--- labs/jbossesb/branches/refactor/ESBCore/listeners/tests/src/org/jboss/soa/esb/listeners/tests/DummyUnitTest.java 2006-07-14 17:25:08 UTC (rev 5099)
+++ labs/jbossesb/branches/refactor/ESBCore/listeners/tests/src/org/jboss/soa/esb/listeners/tests/DummyUnitTest.java 2006-07-14 20:22:30 UTC (rev 5100)
@@ -0,0 +1,45 @@
+/*
+* 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.soa.esb.listeners.tests;
+
+import org.jboss.soa.esb.common.tests.BaseTest;
+
+/**
+ * Dummy test file.
+ *
+ * @author <a href="mailto:arvinder.singh at indigo-logic.com">Arvinder Singh</a>
+ * @version <tt>$Revision$</tt>
+ * $Id$
+ */
+public class DummyUnitTest extends BaseTest {
+
+ /**
+ * Remove me
+ * @throws Exception
+ */
+ public void testDummyCompileAndInvoke() throws Exception {
+ log.info("****************************************************************");
+ log.info(" Dummy unit test called. Replace this with module level tests");
+ log.info("****************************************************************");
+ }
+
+}
Modified: labs/jbossesb/branches/refactor/ESBCore/processors/build.xml
===================================================================
--- labs/jbossesb/branches/refactor/ESBCore/processors/build.xml 2006-07-14 17:25:08 UTC (rev 5099)
+++ labs/jbossesb/branches/refactor/ESBCore/processors/build.xml 2006-07-14 20:22:30 UTC (rev 5100)
@@ -40,7 +40,16 @@
<delete dir="${org.jboss.esb.processors.bin.dir}"/>
</target>
- <target name="org.jboss.esb.processors.compile" depends="org.jboss.esb.processors.prepare"
+
+ <target name="org.jboss.esb.processors.compile">
+ <!-- Compile processors -->
+ <antcall target="org.jboss.esb.processors.internal.compile"/>
+ <!-- Compile processors tests -->
+ <ant inheritAll="true" dir="tests" target="org.jboss.esb.processors.tests.compile"/>
+ </target>
+
+
+ <target name="org.jboss.esb.processors.internal.compile" depends="org.jboss.esb.processors.prepare"
description="Compile all classes">
<javac
@@ -66,6 +75,14 @@
/>
</target>
- <target name="all" depends="recompile,jar" />
+ <target name="org.jboss.esb.processors.test" description="Run tests for this module">
+ <!-- Compile processors tests -->
+ <ant dir="tests" target="org.jboss.esb.processors.internal.test"/>
+ </target>
+
+
+
+ <target name="all" depends="recompile,jar" />
+
</project>
Added: labs/jbossesb/branches/refactor/ESBCore/processors/tests/build.xml
===================================================================
--- labs/jbossesb/branches/refactor/ESBCore/processors/tests/build.xml 2006-07-14 17:25:08 UTC (rev 5099)
+++ labs/jbossesb/branches/refactor/ESBCore/processors/tests/build.xml 2006-07-14 20:22:30 UTC (rev 5100)
@@ -0,0 +1,117 @@
+<?xml version="1.0"?>
+<project name="build.processors.tests" default="org.jboss.esb.processors.tests.compile" basedir=".">
+
+ <property name="org.jboss.esb.tests.bin.dir" value="${org.jboss.esb.internal.dest}/tests"/>
+ <property name="org.jboss.esb.tests.report.dir" value="${org.jboss.esb.internal.dest}/tests/junit"/>
+ <property name="org.jboss.esb.core.bin.dir" value="${org.jboss.esb.internal.dest}/classes"/>
+ <property name="org.jboss.esb.tests.src.dir" value="${basedir}/src"/>
+ <property name="org.jboss.esb.root.dir" value="../.."/>
+ <property environment="env"/>
+
+ <property name="org.jboss.esb.ext.lib.dir" value="${org.jboss.esb.root.dir}/lib/ext"/>
+ <condition property="org.jboss.esb.ext.lib.dir" value="{org.jboss.esb.jboss.home}/client">
+ <equals arg1="${org.jboss.esb.frominstall}" arg2="yes"/>
+ </condition>
+
+ <path id="org.jboss.esb.tests.base.classpath">
+ <fileset dir="../${org.jboss.esb.ext.lib.dir}"
+ includes="activation.jar jbossall-client.jar log4j.jar mail.jar junit.jar"/>
+ <pathelement location="${org.jboss.esb.core.bin.dir}"/>
+ </path>
+
+ <target name="org.jboss.esb.tests.init">
+ <tstamp>
+ <format property="TODAY" pattern="d-MM-yy"/>
+ </tstamp>
+
+ <mkdir dir="${org.jboss.esb.tests.bin.dir}"/>
+ <mkdir dir="${org.jboss.esb.tests.report.dir}"/>
+ </target>
+
+ <target name="clean"/>
+
+ <target name="purge" depends="clean">
+ <delete dir="${org.jboss.esb.tests.bin.dir}"/>
+ </target>
+
+ <target name="org.jboss.esb.processors.tests.compile" if="org.jboss.esb.buildtests" depends="org.jboss.esb.tests.init">
+
+ <javac
+ destdir="${org.jboss.esb.tests.bin.dir}"
+ classpathref="org.jboss.esb.tests.base.classpath"
+ debug="${org.jboss.esb.debug}"
+ optimize="${org.jboss.esb.optimize}"
+ >
+ <src path="${org.jboss.esb.tests.src.dir}"/>
+ </javac>
+
+ </target>
+
+
+ <!-- ====================================================================== -->
+ <!-- T E S T -->
+ <!-- ====================================================================== -->
+ <target name="org.jboss.esb.processors.internal.test">
+ <antcall target="org.jboss.esb.processors.internal.test.unit"/>
+ <antcall target="org.jboss.esb.processors.internal.test.functional"/>
+ </target>
+
+
+ <!-- ====================================================================== -->
+ <!-- U N I T T E S T S -->
+ <!-- ====================================================================== -->
+ <target name="org.jboss.esb.processors.internal.test.unit">
+ <echo message="Running tests for module"/>
+ <junit printsummary="yes" haltonerror="yes" haltonfailure="yes" showoutput="no" fork="true">
+ <formatter type="plain" usefile="false"/>
+ <formatter type="xml"/>
+ <batchtest todir="${org.jboss.esb.tests.report.dir}">
+ <fileset dir="${org.jboss.esb.tests.bin.dir}">
+ <include name="**/**/processors/**/**UnitTest.class"/>
+ </fileset>
+ </batchtest>
+ <classpath>
+ <path refid="org.jboss.esb.tests.base.classpath"/>
+ <pathelement location="${org.jboss.esb.core.bin.dir}"/>
+ <pathelement location="${org.jboss.esb.tests.bin.dir}"/>
+ </classpath>
+ </junit>
+ <junitreport>
+ <fileset dir="${org.jboss.esb.tests.report.dir}">
+ <include name="*.xml"/>
+ </fileset>
+ <report format="frames" todir="${org.jboss.esb.tests.report.dir}"/>
+ <report format="noframes" todir="${org.jboss.esb.tests.report.dir}"/>
+ </junitreport>
+ </target>
+
+
+ <!-- ====================================================================== -->
+ <!-- F U NC T I O N A L T E S T S -->
+ <!-- ====================================================================== -->
+ <target name="org.jboss.esb.processors.internal.test.functional">
+ <echo message="Running tests for module"/>
+ <junit printsummary="yes" haltonerror="yes" haltonfailure="yes" showoutput="no" fork="true">
+ <formatter type="plain" usefile="false"/>
+ <formatter type="xml"/>
+ <batchtest todir="${org.jboss.esb.tests.report.dir}">
+ <fileset dir="${org.jboss.esb.tests.bin.dir}">
+ <include name="**/**/processors/**/**FuncTest.class"/>
+ </fileset>
+ </batchtest>
+ <classpath>
+ <path refid="org.jboss.esb.tests.base.classpath"/>
+ <pathelement location="${org.jboss.esb.core.bin.dir}"/>
+ <pathelement location="${org.jboss.esb.tests.bin.dir}"/>
+ </classpath>
+ </junit>
+ <junitreport>
+ <fileset dir="${org.jboss.esb.tests.report.dir}">
+ <include name="*.xml"/>
+ </fileset>
+ <report format="frames" todir="${org.jboss.esb.tests.report.dir}"/>
+ <report format="noframes" todir="${org.jboss.esb.tests.report.dir}"/>
+ </junitreport>
+ </target>
+
+</project>
Added: labs/jbossesb/branches/refactor/ESBCore/processors/tests/src/org/jboss/soa/esb/processors/tests/DummyUnitTest.java
===================================================================
--- labs/jbossesb/branches/refactor/ESBCore/processors/tests/src/org/jboss/soa/esb/processors/tests/DummyUnitTest.java 2006-07-14 17:25:08 UTC (rev 5099)
+++ labs/jbossesb/branches/refactor/ESBCore/processors/tests/src/org/jboss/soa/esb/processors/tests/DummyUnitTest.java 2006-07-14 20:22:30 UTC (rev 5100)
@@ -0,0 +1,45 @@
+/*
+* 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.soa.esb.processors.tests;
+
+import org.jboss.soa.esb.common.tests.BaseTest;
+
+/**
+ * Dummy test file.
+ *
+ * @author <a href="mailto:arvinder.singh at indigo-logic.com">Arvinder Singh</a>
+ * @version <tt>$Revision$</tt>
+ * $Id$
+ */
+public class DummyUnitTest extends BaseTest {
+
+ /**
+ * Remove me
+ * @throws Exception
+ */
+ public void testDummyCompileAndInvoke() throws Exception {
+ log.info("****************************************************************");
+ log.info(" Dummy unit test called. Replace this with module level tests");
+ log.info("****************************************************************");
+ }
+
+}
Modified: labs/jbossesb/branches/refactor/ESBCore/services/build.xml
===================================================================
--- labs/jbossesb/branches/refactor/ESBCore/services/build.xml 2006-07-14 17:25:08 UTC (rev 5099)
+++ labs/jbossesb/branches/refactor/ESBCore/services/build.xml 2006-07-14 20:22:30 UTC (rev 5100)
@@ -59,7 +59,16 @@
<!-- Compiles all the classes -->
<!-- =================================================================== -->
- <target name="org.jboss.esb.services.compile" depends="org.jboss.esb.services.prepare"
+
+ <target name="org.jboss.esb.services.compile">
+ <!-- Compile services -->
+ <antcall target="org.jboss.esb.services.internal.compile"/>
+ <!-- Compile services tests -->
+ <ant inheritAll="true" dir="tests" target="org.jboss.esb.services.tests.compile"/>
+ </target>
+
+
+ <target name="org.jboss.esb.services.internal.compile" depends="org.jboss.esb.services.prepare"
description="Compile all classes">
<javac
@@ -203,4 +212,16 @@
</target>
+
+ <!-- =================================================================== -->
+ <!-- Test -->
+ <!-- =================================================================== -->
+ <target name="org.jboss.esb.services.test" description="Run tests for this module">
+ <!-- Compile processors tests -->
+ <ant dir="tests" target="org.jboss.esb.services.internal.test"/>
+ </target>
+
+
+
+
</project>
Added: labs/jbossesb/branches/refactor/ESBCore/services/tests/build.xml
===================================================================
--- labs/jbossesb/branches/refactor/ESBCore/services/tests/build.xml 2006-07-14 17:25:08 UTC (rev 5099)
+++ labs/jbossesb/branches/refactor/ESBCore/services/tests/build.xml 2006-07-14 20:22:30 UTC (rev 5100)
@@ -0,0 +1,117 @@
+<?xml version="1.0"?>
+<project name="build.services.tests" default="org.jboss.esb.services.tests.compile" basedir=".">
+
+ <property name="org.jboss.esb.tests.bin.dir" value="${org.jboss.esb.internal.dest}/tests"/>
+ <property name="org.jboss.esb.tests.report.dir" value="${org.jboss.esb.internal.dest}/tests/junit"/>
+ <property name="org.jboss.esb.core.bin.dir" value="${org.jboss.esb.internal.dest}/classes"/>
+ <property name="org.jboss.esb.tests.src.dir" value="${basedir}/src"/>
+ <property name="org.jboss.esb.root.dir" value="../.."/>
+ <property environment="env"/>
+
+ <property name="org.jboss.esb.ext.lib.dir" value="${org.jboss.esb.root.dir}/lib/ext"/>
+ <condition property="org.jboss.esb.ext.lib.dir" value="{org.jboss.esb.jboss.home}/client">
+ <equals arg1="${org.jboss.esb.frominstall}" arg2="yes"/>
+ </condition>
+
+ <path id="org.jboss.esb.tests.base.classpath">
+ <fileset dir="../${org.jboss.esb.ext.lib.dir}"
+ includes="activation.jar jbossall-client.jar log4j.jar mail.jar junit.jar"/>
+ <pathelement location="${org.jboss.esb.core.bin.dir}"/>
+ </path>
+
+ <target name="org.jboss.esb.tests.init">
+ <tstamp>
+ <format property="TODAY" pattern="d-MM-yy"/>
+ </tstamp>
+
+ <mkdir dir="${org.jboss.esb.tests.bin.dir}"/>
+ <mkdir dir="${org.jboss.esb.tests.report.dir}"/>
+ </target>
+
+ <target name="clean"/>
+
+ <target name="purge" depends="clean">
+ <delete dir="${org.jboss.esb.tests.bin.dir}"/>
+ </target>
+
+ <target name="org.jboss.esb.services.tests.compile" if="org.jboss.esb.buildtests" depends="org.jboss.esb.tests.init">
+
+ <javac
+ destdir="${org.jboss.esb.tests.bin.dir}"
+ classpathref="org.jboss.esb.tests.base.classpath"
+ debug="${org.jboss.esb.debug}"
+ optimize="${org.jboss.esb.optimize}"
+ >
+ <src path="${org.jboss.esb.tests.src.dir}"/>
+ </javac>
+
+ </target>
+
+
+ <!-- ====================================================================== -->
+ <!-- T E S T -->
+ <!-- ====================================================================== -->
+ <target name="org.jboss.esb.services.internal.test">
+ <antcall target="org.jboss.esb.services.internal.test.unit"/>
+ <antcall target="org.jboss.esb.services.internal.test.functional"/>
+ </target>
+
+
+ <!-- ====================================================================== -->
+ <!-- U N I T T E S T S -->
+ <!-- ====================================================================== -->
+ <target name="org.jboss.esb.services.internal.test.unit">
+ <echo message="Running tests for module"/>
+ <junit printsummary="yes" haltonerror="yes" haltonfailure="yes" showoutput="no" fork="true">
+ <formatter type="plain" usefile="false"/>
+ <formatter type="xml"/>
+ <batchtest todir="${org.jboss.esb.tests.report.dir}">
+ <fileset dir="${org.jboss.esb.tests.bin.dir}">
+ <include name="**/**/services/**/**UnitTest.class"/>
+ </fileset>
+ </batchtest>
+ <classpath>
+ <path refid="org.jboss.esb.tests.base.classpath"/>
+ <pathelement location="${org.jboss.esb.core.bin.dir}"/>
+ <pathelement location="${org.jboss.esb.tests.bin.dir}"/>
+ </classpath>
+ </junit>
+ <junitreport>
+ <fileset dir="${org.jboss.esb.tests.report.dir}">
+ <include name="*.xml"/>
+ </fileset>
+ <report format="frames" todir="${org.jboss.esb.tests.report.dir}"/>
+ <report format="noframes" todir="${org.jboss.esb.tests.report.dir}"/>
+ </junitreport>
+ </target>
+
+
+ <!-- ====================================================================== -->
+ <!-- F U NC T I O N A L T E S T S -->
+ <!-- ====================================================================== -->
+ <target name="org.jboss.esb.services.internal.test.functional">
+ <echo message="Running tests for module"/>
+ <junit printsummary="yes" haltonerror="yes" haltonfailure="yes" showoutput="no" fork="true">
+ <formatter type="plain" usefile="false"/>
+ <formatter type="xml"/>
+ <batchtest todir="${org.jboss.esb.tests.report.dir}">
+ <fileset dir="${org.jboss.esb.tests.bin.dir}">
+ <include name="**/**/services/**/**FuncTest.class"/>
+ </fileset>
+ </batchtest>
+ <classpath>
+ <path refid="org.jboss.esb.tests.base.classpath"/>
+ <pathelement location="${org.jboss.esb.core.bin.dir}"/>
+ <pathelement location="${org.jboss.esb.tests.bin.dir}"/>
+ </classpath>
+ </junit>
+ <junitreport>
+ <fileset dir="${org.jboss.esb.tests.report.dir}">
+ <include name="*.xml"/>
+ </fileset>
+ <report format="frames" todir="${org.jboss.esb.tests.report.dir}"/>
+ <report format="noframes" todir="${org.jboss.esb.tests.report.dir}"/>
+ </junitreport>
+ </target>
+
+</project>
Added: labs/jbossesb/branches/refactor/ESBCore/services/tests/src/org/jboss/soa/esb/services/tests/DummyUnitTest.java
===================================================================
--- labs/jbossesb/branches/refactor/ESBCore/services/tests/src/org/jboss/soa/esb/services/tests/DummyUnitTest.java 2006-07-14 17:25:08 UTC (rev 5099)
+++ labs/jbossesb/branches/refactor/ESBCore/services/tests/src/org/jboss/soa/esb/services/tests/DummyUnitTest.java 2006-07-14 20:22:30 UTC (rev 5100)
@@ -0,0 +1,45 @@
+/*
+* 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.soa.esb.services.tests;
+
+import org.jboss.soa.esb.common.tests.BaseTest;
+
+/**
+ * Dummy test file.
+ *
+ * @author <a href="mailto:arvinder.singh at indigo-logic.com">Arvinder Singh</a>
+ * @version <tt>$Revision$</tt>
+ * $Id$
+ */
+public class DummyUnitTest extends BaseTest {
+
+ /**
+ * Remove me
+ * @throws Exception
+ */
+ public void testDummyCompileAndInvoke() throws Exception {
+ log.info("****************************************************************");
+ log.info(" Dummy unit test called. Replace this with module level tests");
+ log.info("****************************************************************");
+ }
+
+}
More information about the jboss-svn-commits
mailing list