From ca393382a3750623b58f5514b2fde52355427f3f Mon Sep 17 00:00:00 2001 From: Olga Maciaszek-Sharma Date: Tue, 23 Feb 2016 22:39:14 +0100 Subject: [PATCH] Switched from Java 8 forEach() to Groovy each{}. --- .../io/codearte/accurest/SingleTestGeneratorSpec.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/accurest-core/src/test/groovy/io/codearte/accurest/SingleTestGeneratorSpec.groovy b/accurest-core/src/test/groovy/io/codearte/accurest/SingleTestGeneratorSpec.groovy index d3f37399c2..5b026ce8dd 100644 --- a/accurest-core/src/test/groovy/io/codearte/accurest/SingleTestGeneratorSpec.groovy +++ b/accurest-core/src/test/groovy/io/codearte/accurest/SingleTestGeneratorSpec.groovy @@ -57,7 +57,7 @@ class SingleTestGeneratorSpec extends Specification { String clazz = testGenerator.buildClass([contract], "test", "test") then: - classStrings.forEach({ clazz.contains(it) }) + classStrings.each { clazz.contains(it) } where: testFramework | classStrings @@ -80,7 +80,7 @@ class SingleTestGeneratorSpec extends Specification { String clazz = testGenerator.buildClass([contract], "test", "test") then: - classStrings.forEach({ clazz.contains(it) }) + classStrings.each { clazz.contains(it) } where: testFramework | classStrings