JAVA-30302 Review log statements for projects - Week 52 - 2023 (conti-2) (#15623)
This commit is contained in:
+2
-4
@@ -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}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user