// Path: json-path/src/main/java/com/jayway/jsonpath/JsonPath.java
// public static ParseContext using(Configuration configuration) {
//     return new ParseContextImpl(configuration);
// }


import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import java.util.ArrayList;
import java.util.List;
import static com.jayway.jsonpath.JsonPath.using;
import static com.jayway.jsonpath.TestUtils.assertHasNoResults;
import static com.jayway.jsonpath.TestUtils.assertHasOneResult;
import static java.util.Arrays.asList;
import static org.assertj.core.api.Assertions.assertThat;
package com.jayway.jsonpath;




@RunWith(Parameterized.class)
public class InlineFilterTest extends BaseTest {

    private static int bookCount = 4;


    private Configuration conf = Configurations.GSON_CONFIGURATION;

    public InlineFilterTest(Configuration conf) {
        this.conf = conf;
    }

    @Parameterized.Parameters
    public static Iterable<Configuration> configurations() {
        return Configurations.configurations();
    }

    @Test
    public void root_context_can_be_referred_in_predicate() {
// Path: json-path/src/main/java/com/jayway/jsonpath/JsonPath.java
// public static ParseContext using(Configuration configuration) {
//     return new ParseContextImpl(configuration);
// }


// Path: json-path/src/test/java/com/jayway/jsonpath/InlineFilterTest.java
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import java.util.ArrayList;
import java.util.List;
import static com.jayway.jsonpath.JsonPath.using;
import static com.jayway.jsonpath.TestUtils.assertHasNoResults;
import static com.jayway.jsonpath.TestUtils.assertHasOneResult;
import static java.util.Arrays.asList;
import static org.assertj.core.api.Assertions.assertThat;

package com.jayway.jsonpath;




@RunWith(Parameterized.class)
public class InlineFilterTest extends BaseTest {

    private static int bookCount = 4;


    private Configuration conf = Configurations.GSON_CONFIGURATION;

    public InlineFilterTest(Configuration conf) {
        this.conf = conf;
    }

    @Parameterized.Parameters
    public static Iterable<Configuration> configurations() {
        return Configurations.configurations();
    }

    @Test
    public void root_context_can_be_referred_in_predicate() {
        List<Double> prices = using(conf).parse(JSON_DOCUMENT).read("store.book[?(@.display-price <= $.max-price)].display-price", List.class);