Index: trunk/.classpath
===================================================================
--- trunk/.classpath	(revision 14018)
+++ trunk/.classpath	(revision 14019)
@@ -3,34 +3,165 @@
 	<classpathentry excluding="org/apache/commons/compress/PasswordRequiredException.java|org/apache/commons/compress/archivers/|org/apache/commons/compress/changes/|org/apache/commons/compress/compressors/CompressorException.java|org/apache/commons/compress/compressors/CompressorStreamFactory.java|org/apache/commons/compress/compressors/CompressorStreamProvider.java|org/apache/commons/compress/compressors/FileNameUtil.java|org/apache/commons/compress/compressors/brotli/|org/apache/commons/compress/compressors/bzip2/BZip2Utils.java|org/apache/commons/compress/compressors/deflate/|org/apache/commons/compress/compressors/gzip/|org/apache/commons/compress/compressors/lz4/|org/apache/commons/compress/compressors/lz77support/|org/apache/commons/compress/compressors/lzma/|org/apache/commons/compress/compressors/pack200/|org/apache/commons/compress/compressors/snappy/|org/apache/commons/compress/compressors/xz/XZUtils.java|org/apache/commons/compress/compressors/z/|org/apache/commons/compress/compressors/zstandard/|org/apache/commons/compress/parallel/|org/apache/commons/compress/utils/ArchiveUtils.java|org/apache/commons/jcs/JCS.java|org/apache/commons/jcs/access/GroupCacheAccess.java|org/apache/commons/jcs/access/PartitionedCacheAccess.java|org/apache/commons/jcs/access/behavior/IGroupCacheAccess.java|org/apache/commons/jcs/access/exception/InvalidGroupException.java|org/apache/commons/jcs/admin/servlet/|org/apache/commons/jcs/auxiliary/AbstractAuxiliaryCacheMonitor.java|org/apache/commons/jcs/auxiliary/disk/jdbc/|org/apache/commons/jcs/auxiliary/lateral/|org/apache/commons/jcs/auxiliary/remote/AbstractRemoteAuxiliaryCache.java|org/apache/commons/jcs/auxiliary/remote/AbstractRemoteCacheListener.java|org/apache/commons/jcs/auxiliary/remote/AbstractRemoteCacheNoWaitFacade.java|org/apache/commons/jcs/auxiliary/remote/RemoteCache.java|org/apache/commons/jcs/auxiliary/remote/RemoteCacheFactory.java|org/apache/commons/jcs/auxiliary/remote/RemoteCacheFailoverRunner.java|org/apache/commons/jcs/auxiliary/remote/RemoteCacheListener.java|org/apache/commons/jcs/auxiliary/remote/RemoteCacheManager.java|org/apache/commons/jcs/auxiliary/remote/RemoteCacheMonitor.java|org/apache/commons/jcs/auxiliary/remote/RemoteCacheNoWait.java|org/apache/commons/jcs/auxiliary/remote/RemoteCacheNoWaitFacade.java|org/apache/commons/jcs/auxiliary/remote/RemoteCacheRestore.java|org/apache/commons/jcs/auxiliary/remote/http/|org/apache/commons/jcs/auxiliary/remote/server/RemoteCacheStartupServlet.java|org/apache/commons/jcs/auxiliary/remote/server/TimeoutConfigurableRMISocketFactory.java|org/apache/commons/jcs/engine/CacheAdaptor.java|org/apache/commons/jcs/engine/CacheGroup.java|org/apache/commons/jcs/engine/CacheWatchRepairable.java|org/apache/commons/jcs/engine/ZombieCacheService.java|org/apache/commons/jcs/engine/ZombieCacheServiceNonLocal.java|org/apache/commons/jcs/engine/ZombieCacheWatch.java|org/apache/commons/jcs/engine/logging/CacheEventLoggerDebugLogger.java|org/apache/commons/jcs/utils/access/|org/apache/commons/jcs/utils/discovery/|org/apache/commons/jcs/utils/net/|org/apache/commons/jcs/utils/props/|org/apache/commons/jcs/utils/servlet/|org/apache/commons/logging/impl/AvalonLogger.java|org/apache/commons/logging/impl/Jdk13LumberjackLogger.java|org/apache/commons/logging/impl/Log4JLogger.java|org/apache/commons/logging/impl/LogKitLogger.java|org/apache/commons/logging/impl/ServletContextCleaner.java|org/openstreetmap/gui/jmapviewer/Demo.java|org/openstreetmap/gui/jmapviewer/JMapViewerTree.java|org/openstreetmap/gui/jmapviewer/checkBoxTree/" kind="src" path="src"/>
 	<classpathentry including="data/|images/|resources/|styles/" kind="src" path=""/>
-	<classpathentry kind="src" path="test/unit"/>
-	<classpathentry kind="src" path="test/functional"/>
-	<classpathentry kind="src" path="test/performance"/>
-	<classpathentry kind="src" path="scripts"/>
-	<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
-	<classpathentry kind="lib" path="test/lib/fest/fest-assert-1.0.jar"/>
-	<classpathentry kind="lib" path="test/lib/fest/fest-reflect-1.1.jar"/>
-	<classpathentry kind="lib" path="test/lib/fest/fest-swing-1.1.jar"/>
-	<classpathentry kind="lib" path="test/lib/fest/fest-util-1.0.jar"/>
-	<classpathentry kind="lib" path="test/lib/fest/jcip-annotations-1.0.jar"/>
-	<classpathentry kind="lib" path="test/lib/fest/MRJToolkitStubs-1.0.jar"/>
-	<classpathentry kind="lib" path="test/lib/jfcunit.jar"/>
-	<classpathentry exported="true" kind="lib" path="test/lib/equalsverifier-2.4.8.jar"/>
-	<classpathentry kind="lib" path="test/lib/reflections/reflections-0.9.10.jar"/>
-	<classpathentry kind="lib" path="test/lib/reflections/guava-21.0.jar"/>
-	<classpathentry kind="lib" path="test/lib/reflections/javassist-3.21.0-GA.jar"/>
-	<classpathentry kind="lib" path="test/lib/system-rules-1.16.1.jar"/>
-	<classpathentry kind="lib" path="test/lib/unitils-core/unitils-core-3.4.6.jar"/>
-	<classpathentry kind="lib" path="test/lib/commons-testing/commons-testing-2.1.0.jar"/>
-	<classpathentry exported="true" kind="lib" path="test/lib/wiremock-standalone-2.18.0.jar"/>
-	<classpathentry exported="true" kind="lib" path="test/lib/awaitility-3.1.0.jar"/>
+	<classpathentry kind="src" output="bintest" path="test/unit">
+		<attributes>
+			<attribute name="test" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="src" output="bintest" path="test/functional">
+		<attributes>
+			<attribute name="test" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="src" output="bintest" path="test/performance">
+		<attributes>
+			<attribute name="test" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="src" output="bintest" path="scripts">
+		<attributes>
+			<attribute name="test" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4">
+		<attributes>
+			<attribute name="test" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="lib" path="test/lib/fest/fest-assert-1.0.jar">
+		<attributes>
+			<attribute name="test" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="lib" path="test/lib/fest/fest-reflect-1.1.jar">
+		<attributes>
+			<attribute name="test" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="lib" path="test/lib/fest/fest-swing-1.1.jar">
+		<attributes>
+			<attribute name="test" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="lib" path="test/lib/fest/fest-util-1.0.jar">
+		<attributes>
+			<attribute name="test" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="lib" path="test/lib/fest/jcip-annotations-1.0.jar">
+		<attributes>
+			<attribute name="test" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="lib" path="test/lib/fest/MRJToolkitStubs-1.0.jar">
+		<attributes>
+			<attribute name="test" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="lib" path="test/lib/jfcunit.jar">
+		<attributes>
+			<attribute name="test" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry exported="true" kind="lib" path="test/lib/equalsverifier-2.4.8.jar">
+		<attributes>
+			<attribute name="test" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="lib" path="test/lib/reflections/reflections-0.9.10.jar">
+		<attributes>
+			<attribute name="test" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="lib" path="test/lib/reflections/guava-21.0.jar">
+		<attributes>
+			<attribute name="test" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="lib" path="test/lib/reflections/javassist-3.21.0-GA.jar">
+		<attributes>
+			<attribute name="test" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="lib" path="test/lib/system-rules-1.16.1.jar">
+		<attributes>
+			<attribute name="test" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="lib" path="test/lib/unitils-core/unitils-core-3.4.6.jar">
+		<attributes>
+			<attribute name="test" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="lib" path="test/lib/commons-testing/commons-testing-2.1.0.jar">
+		<attributes>
+			<attribute name="test" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry exported="true" kind="lib" path="test/lib/wiremock-standalone-2.18.0.jar">
+		<attributes>
+			<attribute name="test" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry exported="true" kind="lib" path="test/lib/awaitility-3.1.0.jar">
+		<attributes>
+			<attribute name="test" value="true"/>
+		</attributes>
+	</classpathentry>
 	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
-	<classpathentry exported="true" kind="con" path="GROOVY_SUPPORT"/>
-	<classpathentry kind="lib" path="test/lib/unitils-core/commons-collections-3.2.2.jar"/>
-	<classpathentry kind="lib" path="test/lib/unitils-core/commons-lang-2.6.jar"/>
-	<classpathentry kind="lib" path="test/lib/unitils-core/commons-logging-1.1.3.jar"/>
-	<classpathentry kind="lib" path="test/lib/unitils-core/ognl-2.6.9.jar"/>
-	<classpathentry kind="lib" path="test/lib/fest/debug-1.0.jar"/>
-	<classpathentry exported="true" kind="con" path="GROOVY_DSL_SUPPORT"/>
-	<classpathentry exported="true" kind="lib" path="tools/spotbugs/spotbugs-annotations.jar"/>
+	<classpathentry exported="true" kind="con" path="GROOVY_SUPPORT">
+		<attributes>
+			<attribute name="test" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="lib" path="test/lib/unitils-core/commons-collections-3.2.2.jar">
+		<attributes>
+			<attribute name="test" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="lib" path="test/lib/unitils-core/commons-lang-2.6.jar">
+		<attributes>
+			<attribute name="test" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="lib" path="test/lib/unitils-core/commons-logging-1.1.3.jar">
+		<attributes>
+			<attribute name="test" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="lib" path="test/lib/unitils-core/ognl-2.6.9.jar">
+		<attributes>
+			<attribute name="test" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="lib" path="test/lib/fest/debug-1.0.jar">
+		<attributes>
+			<attribute name="test" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry exported="true" kind="con" path="GROOVY_DSL_SUPPORT">
+		<attributes>
+			<attribute name="test" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry exported="true" kind="lib" path="tools/spotbugs/spotbugs-annotations.jar">
+		<attributes>
+			<attribute name="test" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="lib" path="tools/groovy/groovy-cli-commons-2.5.0.jar">
+		<attributes>
+			<attribute name="test" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="lib" path="tools/groovy/groovy-json-2.5.0.jar">
+		<attributes>
+			<attribute name="test" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="lib" path="tools/groovy/groovy-xml-2.5.0.jar">
+		<attributes>
+			<attribute name="test" value="true"/>
+		</attributes>
+	</classpathentry>
 	<classpathentry kind="output" path="bin"/>
 </classpath>
Index: trunk/.settings/org.codehaus.groovy.eclipse.core.prefs
===================================================================
--- trunk/.settings/org.codehaus.groovy.eclipse.core.prefs	(revision 14019)
+++ trunk/.settings/org.codehaus.groovy.eclipse.core.prefs	(revision 14019)
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+groovy.classpath.use.groovy,lib=false
Index: trunk/.settings/org.eclipse.jdt.groovy.core.prefs
===================================================================
--- trunk/.settings/org.eclipse.jdt.groovy.core.prefs	(revision 14018)
+++ trunk/.settings/org.eclipse.jdt.groovy.core.prefs	(revision 14019)
@@ -1,2 +1,3 @@
 eclipse.preferences.version=1
-groovy.compiler.level=24
+groovy.compiler.level=25
+groovy.script.filters=**/*.dsld,y,**/*.gradle,n
Index: trunk/build.xml
===================================================================
--- trunk/build.xml	(revision 14018)
+++ trunk/build.xml	(revision 14019)
@@ -39,5 +39,4 @@
         <property name="checkstyle-build.dir" location="${base.dir}/build2"/>
         <property name="epsg.output" location="${base.dir}/data/projection/custom-epsg"/>
-        <property name="groovy.jar" location="${tools.dir}/groovy-all.jar"/>
         <property name="error_prone_ant.jar" location="${tools.dir}/error_prone_ant.jar"/>
         <property name="dist.jar" location="${dist.dir}/josm-custom.jar"/>
@@ -75,4 +74,9 @@
             </not>
         </condition>
+        <path id="groovy.classpath">
+            <fileset dir="${tools.dir}/groovy">
+                <include name="*.jar"/>
+            </fileset>
+        </path>
         <path id="test.classpath">
             <fileset dir="${test.dir}/lib">
@@ -80,5 +84,5 @@
             </fileset>
             <pathelement path="${dist.jar}"/>
-            <pathelement path="${groovy.jar}"/>
+            <pathelement path="${toString:groovy.classpath}"/>
             <pathelement path="${spotbugs.dir}/spotbugs-annotations.jar"/>
         </path>
@@ -468,5 +472,5 @@
     </macrodef>
     <target name="test-compile" depends="test-init,dist">
-        <taskdef name="groovyc" classname="org.codehaus.groovy.ant.Groovyc" classpath="${groovy.jar}"/>
+        <taskdef name="groovyc" classname="org.codehaus.groovy.ant.Groovyc" classpath="${toString:groovy.classpath}"/>
         <call-groovyc testfamily="unit">
             <cp-elements>
@@ -801,5 +805,5 @@
 
     <target name="taginfo" depends="dist">
-        <taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy" classpath="${groovy.jar};${tools.dir}/commons-cli-1.3.1.jar"/>
+        <taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy" classpath="${toString:groovy.classpath};${tools.dir}/commons-cli-1.3.1.jar"/>
         <property name="taginfoextract" value="scripts/TagInfoExtract.groovy"/>
         <property name="imgurlprefix" value="http://josm.openstreetmap.de/download/taginfo/taginfo-img"/>
@@ -810,5 +814,5 @@
 
     <target name="imageryindex" depends="init-properties">
-        <taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy" classpath="${groovy.jar};${tools.dir}/commons-cli-1.3.1.jar"/>
+        <taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy" classpath="${toString:groovy.classpath};${tools.dir}/commons-cli-1.3.1.jar"/>
         <echo message="Checking editor imagery difference"/>
         <groovy src="scripts/SyncEditorLayerIndex.groovy" classpath="${dist.jar}">
Index: trunk/scripts/SyncEditorLayerIndex.groovy
===================================================================
--- trunk/scripts/SyncEditorLayerIndex.groovy	(revision 14018)
+++ trunk/scripts/SyncEditorLayerIndex.groovy	(revision 14019)
@@ -18,4 +18,5 @@
  */
 import java.text.DecimalFormat
+
 import javax.json.Json
 import javax.json.JsonArray
@@ -33,4 +34,6 @@
 import org.openstreetmap.josm.io.imagery.ImageryReader
 import org.openstreetmap.josm.spi.preferences.Config
+
+import groovy.cli.commons.CliBuilder
 
 class SyncEditorLayerIndex {
@@ -727,5 +730,5 @@
             } catch(IllegalArgumentException err) {
                 def desc = getDescription(e)
-                myprintln("* Invalid data in ELI geometry for $desc: ${err.getMessage()}") 
+                myprintln("* Invalid data in ELI geometry for $desc: ${err.getMessage()}")
             }
             if (s == null || !josmUrls.containsKey(url)) {
Index: trunk/scripts/TagInfoExtract.groovy
===================================================================
--- trunk/scripts/TagInfoExtract.groovy	(revision 14018)
+++ trunk/scripts/TagInfoExtract.groovy	(revision 14019)
@@ -53,4 +53,5 @@
 
 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings
+import groovy.cli.commons.CliBuilder
 import groovy.json.JsonBuilder
 
Index: trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/ChildOrParentSelectorTest.groovy
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/ChildOrParentSelectorTest.groovy	(revision 14018)
+++ trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/ChildOrParentSelectorTest.groovy	(revision 14019)
@@ -20,6 +20,4 @@
 class ChildOrParentSelectorTest {
     static private Logger logger = Logger.getLogger(ChildOrParentSelectorTest.class.getName());
-
-    def shouldFail = new GroovyTestCase().&shouldFail
 
     def DataSet ds;
Index: trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/KeyConditionTest.groovy
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/KeyConditionTest.groovy	(revision 14018)
+++ trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/KeyConditionTest.groovy	(revision 14019)
@@ -2,4 +2,5 @@
 package org.openstreetmap.josm.gui.mappaint.mapcss;
 
+import static groovy.test.GroovyAssert.shouldFail
 import static org.junit.Assert.*
 
@@ -16,6 +17,4 @@
 
 class KeyConditionTest {
-
-    def shouldFail = new GroovyTestCase().&shouldFail
 
     def DataSet ds;
Index: trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/KeyValueConditionTest.groovy
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/KeyValueConditionTest.groovy	(revision 14018)
+++ trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/KeyValueConditionTest.groovy	(revision 14019)
@@ -1,4 +1,6 @@
 // License: GPL. For details, see LICENSE file.
 package org.openstreetmap.josm.gui.mappaint.mapcss;
+
+import static groovy.test.GroovyAssert.shouldFail
 
 import org.junit.*
@@ -15,8 +17,5 @@
 import org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.MapCSSParser
 
-
 class KeyValueConditionTest {
-
-    def shouldFail = new GroovyTestCase().&shouldFail
 
     def DataSet ds;
Index: trunk/test/unit/org/openstreetmap/josm/io/ChangesetQueryUrlParserTest.groovy
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/io/ChangesetQueryUrlParserTest.groovy	(revision 14018)
+++ trunk/test/unit/org/openstreetmap/josm/io/ChangesetQueryUrlParserTest.groovy	(revision 14019)
@@ -1,4 +1,9 @@
 // License: GPL. For details, see LICENSE file.
 package org.openstreetmap.josm.io
+
+import static groovy.test.GroovyAssert.shouldFail
+
+import java.time.OffsetDateTime
+import java.time.ZoneOffset
 
 import org.junit.Test
@@ -6,9 +11,5 @@
 import org.openstreetmap.josm.io.ChangesetQuery.ChangesetQueryUrlParser
 
-import java.time.OffsetDateTime
-import java.time.ZoneOffset
-
 class ChangesetQueryUrlParserTest {
-    final shouldFail = new GroovyTestCase().&shouldFail
 
     @Test
Index: trunk/test/unit/org/openstreetmap/josm/io/DiffResultProcessorTest.groovy
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/io/DiffResultProcessorTest.groovy	(revision 14018)
+++ trunk/test/unit/org/openstreetmap/josm/io/DiffResultProcessorTest.groovy	(revision 14019)
@@ -2,4 +2,5 @@
 package org.openstreetmap.josm.io;
 
+import static groovy.test.GroovyAssert.shouldFail
 import static org.junit.Assert.*
 
@@ -30,6 +31,4 @@
     public void testParse_NOK_Cases() {
         def DiffResultProcessor processor  = new DiffResultProcessor([])
-
-        final shouldFail = new GroovyTestCase().&shouldFail
 
         shouldFail(IllegalArgumentException) {
Index: trunk/test/unit/org/openstreetmap/josm/io/OsmChangeBuilderTest.groovy
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/io/OsmChangeBuilderTest.groovy	(revision 14018)
+++ trunk/test/unit/org/openstreetmap/josm/io/OsmChangeBuilderTest.groovy	(revision 14019)
@@ -1,4 +1,5 @@
 package org.openstreetmap.josm.io;
 
+import static groovy.test.GroovyAssert.shouldFail
 import static org.junit.Assert.*
 
@@ -38,6 +39,4 @@
         def Changeset cs = new Changeset(1)
         OsmChangeBuilder builder = new OsmChangeBuilder(cs)
-
-        final shouldFail = new GroovyTestCase().&shouldFail
 
         // should be OK
Index: trunk/test/unit/org/openstreetmap/josm/io/OsmChangesetContentParserTest.groovy
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/io/OsmChangesetContentParserTest.groovy	(revision 14018)
+++ trunk/test/unit/org/openstreetmap/josm/io/OsmChangesetContentParserTest.groovy	(revision 14019)
@@ -1,4 +1,6 @@
 // License: GPL. For details, see LICENSE file.
 package org.openstreetmap.josm.io;
+
+import static groovy.test.GroovyAssert.shouldFail
 
 import java.nio.charset.StandardCharsets
@@ -15,5 +17,4 @@
 
 class OsmChangesetContentParserTest {
-    final shouldFail = new GroovyTestCase().&shouldFail
 
     @Test
Index: trunk/test/unit/org/openstreetmap/josm/io/ParseWithChangesetReaderTest.groovy
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/io/ParseWithChangesetReaderTest.groovy	(revision 14018)
+++ trunk/test/unit/org/openstreetmap/josm/io/ParseWithChangesetReaderTest.groovy	(revision 14019)
@@ -2,4 +2,5 @@
 package org.openstreetmap.josm.io;
 
+import static groovy.test.GroovyAssert.shouldFail
 import static org.junit.Assert.*
 
@@ -167,6 +168,4 @@
         """
 
-        final shouldFail = new GroovyTestCase().&shouldFail
-
         shouldFail(IllegalDataException) {
             DataSet ds = getDataSet(doc)
@@ -184,6 +183,4 @@
         </osm>
         """
-
-        final shouldFail = new GroovyTestCase().&shouldFail
 
         shouldFail(IllegalDataException) {
@@ -203,6 +200,4 @@
             """
 
-        final shouldFail = new GroovyTestCase().&shouldFail
-
         shouldFail(IllegalDataException) {
             DataSet ds = getDataSet(doc)
