├── .gitignore ├── deploy ├── pubring.gpg.enc ├── secring.gpg.enc └── gradle.properties.enc ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── LICENSE.txt ├── src ├── test │ └── java │ │ └── com │ │ └── revinate │ │ └── assertj │ │ └── json │ │ ├── TestConfig.java │ │ └── JsonPathAssertTest.java └── main │ └── java │ └── com │ └── revinate │ └── assertj │ └── json │ └── JsonPathAssert.java ├── .travis.yml ├── README.md ├── gradlew.bat └── gradlew /.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | /.gradle 3 | /.idea 4 | 5 | *.iml 6 | *.ipr -------------------------------------------------------------------------------- /deploy/pubring.gpg.enc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/revinate/assertj-json/HEAD/deploy/pubring.gpg.enc -------------------------------------------------------------------------------- /deploy/secring.gpg.enc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/revinate/assertj-json/HEAD/deploy/secring.gpg.enc -------------------------------------------------------------------------------- /deploy/gradle.properties.enc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/revinate/assertj-json/HEAD/deploy/gradle.properties.enc -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/revinate/assertj-json/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Tue Jan 12 10:38:40 PST 2016 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip 7 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Revinate, Inc. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /src/test/java/com/revinate/assertj/json/TestConfig.java: -------------------------------------------------------------------------------- 1 | package com.revinate.assertj.json; 2 | 3 | import com.jayway.jsonpath.Configuration; 4 | import com.jayway.jsonpath.Option; 5 | import com.jayway.jsonpath.spi.json.JacksonJsonProvider; 6 | import com.jayway.jsonpath.spi.json.JsonProvider; 7 | import com.jayway.jsonpath.spi.mapper.JacksonMappingProvider; 8 | import com.jayway.jsonpath.spi.mapper.MappingProvider; 9 | 10 | import java.util.EnumSet; 11 | import java.util.Set; 12 | 13 | public class TestConfig { 14 | public static void setDefaults() { 15 | Configuration.setDefaults(new Configuration.Defaults() { 16 | private final JsonProvider jsonProvider = new JacksonJsonProvider(); 17 | private final MappingProvider mappingProvider = new JacksonMappingProvider(); 18 | 19 | @Override 20 | public JsonProvider jsonProvider() { 21 | return jsonProvider; 22 | } 23 | 24 | @Override 25 | public MappingProvider mappingProvider() { 26 | return mappingProvider; 27 | } 28 | 29 | @Override 30 | public Set