JAVA-30302 Review log statements for projects - Week 52 - 2023 (conti-2) (#15623)

This commit is contained in:
timis1
2024-01-15 23:40:59 +02:00
committed by GitHub
parent 4e46f6626a
commit 9dd807367b
11 changed files with 21 additions and 18 deletions
@@ -1,7 +1,5 @@
package com.baeldung.closures
import spock.lang.Specification
class ClosuresUnitTest extends GroovyTestCase {
Closures closures = new Closures()
@@ -64,9 +62,9 @@ class ClosuresUnitTest extends GroovyTestCase {
void testClosureInLists() {
def list = [10, 11, 12, 13, 14, true, false, "BUNTHER"]
list.each {
/*list.each {
println it
}
}*/
assert [13, 14] == list.findAll{ it instanceof Integer && it >= 13}
}