From bcd00f7b7bb24971ad5b1dcb2eb3cb51a8e9ddca Mon Sep 17 00:00:00 2001 From: Alexey Makeyev Date: Tue, 20 Oct 2015 15:31:13 +0300 Subject: [PATCH] test moved to avoid visibility changes --- .../java/com/jayway/jsonpath/internal/token/PathToken.java | 4 ++-- .../com/jayway/jsonpath/internal/token/PropertyPathToken.java | 2 +- .../com/jayway/jsonpath/internal/token/ScanPathToken.java | 2 +- .../com/jayway/jsonpath/internal/token/WildcardPathToken.java | 2 +- .../jayway/jsonpath/{ => internal/token}/PathTokenTest.java | 3 ++- 5 files changed, 7 insertions(+), 6 deletions(-) rename json-path/src/test/java/com/jayway/jsonpath/{ => internal/token}/PathTokenTest.java (95%) diff --git a/json-path/src/main/java/com/jayway/jsonpath/internal/token/PathToken.java b/json-path/src/main/java/com/jayway/jsonpath/internal/token/PathToken.java index 781f23d2..47b76383 100644 --- a/json-path/src/main/java/com/jayway/jsonpath/internal/token/PathToken.java +++ b/json-path/src/main/java/com/jayway/jsonpath/internal/token/PathToken.java @@ -36,7 +36,7 @@ public abstract class PathToken { private Boolean definite = null; private Boolean upstreamDefinite = null; - public PathToken appendTailToken(PathToken next) { + PathToken appendTailToken(PathToken next) { this.next = next; this.next.prev = this; return next; @@ -161,7 +161,7 @@ public abstract class PathToken { return prev == null; } - public boolean isUpstreamDefinite() { + boolean isUpstreamDefinite() { if (upstreamDefinite == null) { upstreamDefinite = isRoot() || prev.isTokenDefinite() && prev.isUpstreamDefinite(); } diff --git a/json-path/src/main/java/com/jayway/jsonpath/internal/token/PropertyPathToken.java b/json-path/src/main/java/com/jayway/jsonpath/internal/token/PropertyPathToken.java index 24918f3e..d4633a67 100644 --- a/json-path/src/main/java/com/jayway/jsonpath/internal/token/PropertyPathToken.java +++ b/json-path/src/main/java/com/jayway/jsonpath/internal/token/PropertyPathToken.java @@ -27,7 +27,7 @@ import static com.jayway.jsonpath.internal.Utils.onlyOneIsTrueNonThrow; /** * */ -public class PropertyPathToken extends PathToken { +class PropertyPathToken extends PathToken { private final List properties; diff --git a/json-path/src/main/java/com/jayway/jsonpath/internal/token/ScanPathToken.java b/json-path/src/main/java/com/jayway/jsonpath/internal/token/ScanPathToken.java index a67fcd80..07d48ad2 100644 --- a/json-path/src/main/java/com/jayway/jsonpath/internal/token/ScanPathToken.java +++ b/json-path/src/main/java/com/jayway/jsonpath/internal/token/ScanPathToken.java @@ -25,7 +25,7 @@ import java.util.Collection; */ public class ScanPathToken extends PathToken { - public ScanPathToken() { + ScanPathToken() { } @Override diff --git a/json-path/src/main/java/com/jayway/jsonpath/internal/token/WildcardPathToken.java b/json-path/src/main/java/com/jayway/jsonpath/internal/token/WildcardPathToken.java index 4325301f..1ce86ddc 100644 --- a/json-path/src/main/java/com/jayway/jsonpath/internal/token/WildcardPathToken.java +++ b/json-path/src/main/java/com/jayway/jsonpath/internal/token/WildcardPathToken.java @@ -25,7 +25,7 @@ import static java.util.Arrays.asList; */ public class WildcardPathToken extends PathToken { - public WildcardPathToken() { + WildcardPathToken() { } @Override diff --git a/json-path/src/test/java/com/jayway/jsonpath/PathTokenTest.java b/json-path/src/test/java/com/jayway/jsonpath/internal/token/PathTokenTest.java similarity index 95% rename from json-path/src/test/java/com/jayway/jsonpath/PathTokenTest.java rename to json-path/src/test/java/com/jayway/jsonpath/internal/token/PathTokenTest.java index b7612649..e1e68dc4 100644 --- a/json-path/src/test/java/com/jayway/jsonpath/PathTokenTest.java +++ b/json-path/src/test/java/com/jayway/jsonpath/internal/token/PathTokenTest.java @@ -1,5 +1,6 @@ -package com.jayway.jsonpath; +package com.jayway.jsonpath.internal.token; +import com.jayway.jsonpath.BaseTest; import com.jayway.jsonpath.internal.token.PathToken; import com.jayway.jsonpath.internal.token.PropertyPathToken; import com.jayway.jsonpath.internal.token.ScanPathToken;