Skip to content

Commit 06a62ef

Browse files
committed
Update README.md
1 parent 599f08a commit 06a62ef

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ Summary
88

99
Write JSON tests as if you are comparing a string. Under the covers, JSONassert converts your string into a JSON object and compares the logical structure and data with the actual JSON. When _strict_ is set to false (recommended), it forgives reordering data and extending results (as long as all the expected elements are there), making tests less brittle.
1010

11+
Supported test frameworks:
12+
13+
* [JUnit](http://junit.org)
14+
1115
Examples
1216
--------
1317

@@ -74,9 +78,9 @@ To use, [download the JAR](https://github.com/skyscreamer/JSONassert/downloads)
7478
<version>0.9.0</version>
7579
</dependency>
7680

77-
And use JSONAssert.assertEquals just like you'd used Assert.assertEquals in existing JUnit test cases. That's it.
81+
Write tests like this:
7882

79-
Behind the scenes, JSONAssert, converts your "expected" string to a JSON object, and compares that to the result you want to test. It performs a logical comparison -- much like the don't-do-this example above, but a lot cleaner. On test failure, the result messages are very specific and should simplify troubleshooting.
83+
<code>JSONAssert.assertEquals(<i>expectedJSONString</i>, <i>actualJSON</i>, <i>strictMode</i>);</code>
8084

8185

8286
* * *

0 commit comments

Comments
 (0)