AssertJ JSON

An AssertJ fluent assertion wrapper around the Skyscreamer JSON comparison library

License

License

Categories

Categories

JSON Data
GroupId

GroupId

com.github.trickl
ArtifactId

ArtifactId

assertj-json
Last Version

Last Version

0.2.14
Release Date

Release Date

Type

Type

jar
Description

Description

AssertJ JSON
An AssertJ fluent assertion wrapper around the Skyscreamer JSON comparison library
Project URL

Project URL

http://github.com/trickl/assertj-json/
Source Code Management

Source Code Management

https://github.com/trickl/assertj-json

Download assertj-json

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.trickl/assertj-json/ -->
<dependency>
    <groupId>com.github.trickl</groupId>
    <artifactId>assertj-json</artifactId>
    <version>0.2.14</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.trickl/assertj-json/
implementation 'com.github.trickl:assertj-json:0.2.14'
// https://jarcasting.com/artifacts/com.github.trickl/assertj-json/
implementation ("com.github.trickl:assertj-json:0.2.14")
'com.github.trickl:assertj-json:jar:0.2.14'
<dependency org="com.github.trickl" name="assertj-json" rev="0.2.14">
  <artifact name="assertj-json" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.trickl', module='assertj-json', version='0.2.14')
)
libraryDependencies += "com.github.trickl" % "assertj-json" % "0.2.14"
[com.github.trickl/assertj-json "0.2.14"]

Dependencies

compile (2)

Group / Artifact Type Version
org.assertj : assertj-core jar 3.11.1
org.skyscreamer : jsonassert jar 1.5.0

provided (1)

Group / Artifact Type Version
org.projectlombok : lombok jar 1.16.16

test (2)

Group / Artifact Type Version
junit : junit jar 4.12
org.mockito : mockito-core jar 2.15.0

Project Modules

There are no modules declared in this project.

Trickl AssertJ JSON

Maven Central build_status Maintainability Test Coverage License

An AssertJ fluent assertion wrapper around the Skyscreamer JSON comparison library

Installation

To install from Maven Central:

<dependency>
  <groupId>com.github.trickl</groupId>
  <artifactId>assertj-json</artifactId>
  <version>0.2.8</version>
</dependency>

Example

    assertThat(json("{\"age\":43, \"friend_ids\":[16, 23, 52]}"))
        .allowingExtraUnexpectedFields()
        .allowingAnyArrayOrdering()
        .isSameJsonAs("{\"friend_ids\":[52, 23, 16]}");

Acknowledgments

AssertJ - http://joel-costigliola.github.io/assertj/

Skyscreamer JSON Library - https://github.com/skyscreamer/JSONassert

Versions

Version
0.2.14
0.2.13
0.2.12
0.2.11
0.2.10
0.2.8
untagged-db5736c6f0bdb3dd3649
untagged-d63201eda24d92fa0f66
untagged-846111c995c507ab938b
untagged-29d09ff2ecdfc1159030
untagged-b0d6f44b3faaef7d769a