Skip to content

Commit

Permalink
Fixed java 1.8 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
benfortuna committed Jul 28, 2021
1 parent df74e69 commit a3061b1
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -9,7 +9,6 @@ import spock.lang.Ignore
import spock.lang.Shared
import spock.lang.Specification

import java.util.function.Predicate
import java.util.stream.Collectors

class FilterExpressionTest extends Specification {
Expand Down Expand Up @@ -142,7 +141,7 @@ class FilterExpressionTest extends Specification {
}

expect: 'filter matches the event'
Predicate.not(filter.toComponentPredicate()).test(event)
filter.toComponentPredicate().negate().test(event)
}

def 'test filter expression parsing'() {
Expand Down

0 comments on commit a3061b1

Please sign in to comment.