Changeset 7063 in josm for trunk


Ignore:
Timestamp:
2014-05-04T23:59:19+02:00 (10 years ago)
Author:
Don-vip
Message:

compile and run all tests, including Groovy ones

Location:
trunk
Files:
1 added
1 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/build.xml

    r7043 r7063  
    259259        </fileset>
    260260        <pathelement path="dist/josm-custom.jar"/>
     261        <pathelement path="tools/groovy-all-2.2.2.jar"/>
    261262    </path>
    262263    <target name="test-init">
     
    270271    </target>
    271272    <target name="test-compile" depends="test-init,dist">
    272         <javac srcdir="${test.dir}/unit" classpathref="test.classpath" destdir="${test.dir}/build" target="1.7" source="1.7" debug="on"
    273                 includeantruntime="false" createMissingPackageInfoClass="off" encoding="UTF-8">
    274             <compilerarg value="-Xlint:all"/>
    275             <compilerarg value="-Xlint:-serial"/>
    276         </javac>
    277         <javac srcdir="${test.dir}/functional" classpathref="test.classpath" destdir="${test.dir}/build" target="1.7" source="1.7" debug="on"
    278                 includeantruntime="false" createMissingPackageInfoClass="off" encoding="UTF-8">
    279             <compilerarg value="-Xlint:all"/>
    280             <compilerarg value="-Xlint:-serial"/>
    281         </javac>
    282         <javac srcdir="${test.dir}/performance" classpathref="test.classpath" destdir="${test.dir}/build" target="1.7" source="1.7" debug="on"
    283                 includeantruntime="false" createMissingPackageInfoClass="off" encoding="UTF-8">
    284             <compilerarg value="-Xlint:all"/>
    285             <compilerarg value="-Xlint:-serial"/>
    286         </javac>
     273        <taskdef name="groovyc" classname="org.codehaus.groovy.ant.Groovyc" classpath="tools/groovy-all-2.2.2.jar"/>
     274        <groovyc classpathref="test.classpath" destdir="${test.dir}/build" encoding="UTF-8">
     275                <src path="${test.dir}/unit"/>
     276            <src path="${test.dir}/functional"/>
     277            <src path="${test.dir}/performance"/>
     278                <javac target="1.7" source="1.7" debug="on">
     279                <compilerarg value="-Xlint:all"/>
     280                <compilerarg value="-Xlint:-serial"/>
     281                </javac>
     282        </groovyc>
    287283    </target>
    288284    <target name="test" depends="test-compile">
     
    302298                <formatter type="xml"/>
    303299                <batchtest fork="yes" todir="${test.dir}/report">
    304                     <fileset dir="${test.dir}/unit" includes="**/*.java"/>
     300                    <fileset dir="${test.dir}/build" includes="**/*Test.class"/>
    305301                </batchtest>
    306302            </junit>
  • trunk/test/unit/org/openstreetmap/josm/data/BoundsTest.java

    r7052 r7063  
    66import static org.junit.Assert.assertTrue;
    77
    8 public class BoundsTests {
     8public class BoundsTest {
    99
    1010    @Test
  • trunk/test/unit/org/openstreetmap/josm/data/osm/OsmPrimitiveKeyHandlingTest.java

    r7052 r7063  
    1414 *
    1515 */
    16 public class OsmPrimitiveKeyHandling {
     16public class OsmPrimitiveKeyHandlingTest {
    1717
    1818    @BeforeClass
Note: See TracChangeset for help on using the changeset viewer.