Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/trickl/assertj-json
Browse files Browse the repository at this point in the history
  • Loading branch information
trickl committed Feb 26, 2019
2 parents f156326 + fadf2f1 commit 2efb173
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,20 @@ An AssertJ fluent assertion wrapper around the Skyscreamer JSON comparison libra

### Prerequisites

Requires Maven and a Java 6 compiler installed on your system.
Requires Maven and a Java 8 compiler installed on your system.

## Usage
## Example

See the Junit tests for usage
```
assertThat(json("{\"age\":43, \"friend_ids\":[16, 23, 52]}"))
.allowingExtraUnexpectedFields()
.allowingAnyArrayOrdering()
.isSameJsonAs("{\"friend_ids\":[52, 23, 16]}");
```

### Installing

To download the library into a folder called "palette" run
To download the library into a folder called "assertj-json" run

```
git clone https://github.com/trickl/assertj-json.git
Expand Down

0 comments on commit 2efb173

Please sign in to comment.