// Path: src/main/java/com/nebhale/jsonpath/internal/component/PathComponent.java
// public interface PathComponent {
// 
//     /**
//      * Returns a {@link JsonNode} that represents the current state of a JSONPath selection after this
//      * {@link PathComponent} is finished with it
//      *
//      * @param input A {@link JsonNode} that represents the context that this JSONPath selection should work against
//      *
//      * @return the current state of a JSONPath selection after this {@link PathComponent} is finished with it
//      */
//     JsonNode get(JsonNode input);
// }
// 
// Path: src/main/java/com/nebhale/jsonpath/internal/component/RootPathComponent.java
// public final class RootPathComponent extends AbstractChainedPathComponent {
// 
//     public RootPathComponent(PathComponent delegate) {
//         super(delegate);
//     }
// 
//     @Override
//     protected JsonNode select(JsonNode input) {
//         return input;
//     }
// 
//     @Override
//     public String toString() {
//         return "RootPathComponent []";
//     }
// 
// }


import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertSame;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
import com.nebhale.jsonpath.internal.component.PathComponent;
import com.nebhale.jsonpath.internal.component.RootPathComponent;
/*
 * Copyright 2013 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.nebhale.jsonpath.internal.parser;





public final class ParserResultTest {

    private final PathComponent pathComponent = new RootPathComponent(null);

    private final List<ExpressionProblem> problems = new ArrayList<ExpressionProblem>();

    private final ExpressionProblem problem = new ExpressionProblem("test-source", 0, "test-message");

    private final ParserResult parserResult = new ParserResult(this.pathComponent, this.problems);

    @Test
    public void getPathComponent() {
// Path: src/main/java/com/nebhale/jsonpath/internal/component/PathComponent.java
// public interface PathComponent {
// 
//     /**
//      * Returns a {@link JsonNode} that represents the current state of a JSONPath selection after this
//      * {@link PathComponent} is finished with it
//      *
//      * @param input A {@link JsonNode} that represents the context that this JSONPath selection should work against
//      *
//      * @return the current state of a JSONPath selection after this {@link PathComponent} is finished with it
//      */
//     JsonNode get(JsonNode input);
// }
// 
// Path: src/main/java/com/nebhale/jsonpath/internal/component/RootPathComponent.java
// public final class RootPathComponent extends AbstractChainedPathComponent {
// 
//     public RootPathComponent(PathComponent delegate) {
//         super(delegate);
//     }
// 
//     @Override
//     protected JsonNode select(JsonNode input) {
//         return input;
//     }
// 
//     @Override
//     public String toString() {
//         return "RootPathComponent []";
//     }
// 
// }


// Path: src/test/java/com/nebhale/jsonpath/internal/parser/ParserResultTest.java
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertSame;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
import com.nebhale.jsonpath.internal.component.PathComponent;
import com.nebhale.jsonpath.internal.component.RootPathComponent;

/*
 * Copyright 2013 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.nebhale.jsonpath.internal.parser;





public final class ParserResultTest {

    private final PathComponent pathComponent = new RootPathComponent(null);

    private final List<ExpressionProblem> problems = new ArrayList<ExpressionProblem>();

    private final ExpressionProblem problem = new ExpressionProblem("test-source", 0, "test-message");

    private final ParserResult parserResult = new ParserResult(this.pathComponent, this.problems);

    @Test
    public void getPathComponent() {
        assertSame(this.pathComponent, this.parserResult.getPathComponent());