|
|
|
@ -4,6 +4,7 @@ import com.jayway.jsonpath.BaseTest;
|
|
|
|
|
import com.jayway.jsonpath.Configuration; |
|
|
|
|
import com.jayway.jsonpath.Filter; |
|
|
|
|
import com.jayway.jsonpath.JsonPath; |
|
|
|
|
import com.jayway.jsonpath.Option; |
|
|
|
|
import com.jayway.jsonpath.Predicate; |
|
|
|
|
import com.jayway.jsonpath.spi.json.JsonProvider; |
|
|
|
|
import org.assertj.core.api.Assertions; |
|
|
|
@ -168,6 +169,8 @@ public class FilterTest extends BaseTest {
|
|
|
|
|
|
|
|
|
|
assertFalse(filter(where("item").nin(3)).apply(createPredicateContext(check))); |
|
|
|
|
assertFalse(filter(where("item").nin(asList(3))).apply(createPredicateContext(check))); |
|
|
|
|
assertFalse(filter(where("not_existent_item").nin(3)).apply(createPredicateContext(check, Option.STRICT_MODE))); |
|
|
|
|
assertFalse(filter(where("not_existent_item").nin(asList(3))).apply(createPredicateContext(check, Option.STRICT_MODE))); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|