Skip to content

Commit c114fc1

Browse files
committed
Merge pull request skyscreamer#11 from carterpage/master
Add changelog
2 parents 7b8ae5d + 3ee059a commit c114fc1

File tree

5 files changed

+27
-0
lines changed

5 files changed

+27
-0
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Changelog
2+
=========
3+
4+
Version 1.0.1 - 9/3/2012
5+
------------------------
6+
- Added withStrictOrdering() and withExtensible() to JSONCompareMode
7+
- Javadoc fixes
8+
- Fix bug where expected and actual were reversed
9+
- Fix bug where nulls gave false positives in some cases
10+
- Simplified publishing Javadocs
11+
12+
Version 1.0.0 - 4/5/2012
13+
------------------------
14+
Initial release!
15+

src/main/java/org/skyscreamer/jsonassert/JSONAssert.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
*
3939
*/
4040
public class JSONAssert {
41+
private JSONAssert() {}
42+
4143
/**
4244
* Asserts that the JSONObject provided matches the expected string. If it isn't it throws an
4345
* {@link AssertionError}.

src/main/java/org/skyscreamer/jsonassert/JSONCompare.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* non-JUnit test framework)
1414
*/
1515
public class JSONCompare {
16+
private JSONCompare() {}
17+
1618
/**
1719
* Compares JSON string provided to the expected JSON string, and returns the results of the comparison.
1820
*

src/main/java/org/skyscreamer/jsonassert/JSONCompareResult.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,12 @@ protected void fail(String message) {
9595
}
9696
}
9797

98+
/**
99+
* Identify that the comparison failed
100+
* @param field Which field failed
101+
* @param expected Expected result
102+
* @param actual Actual result
103+
*/
98104
protected void fail(String field, Object expected, Object actual) {
99105
this._field = field;
100106
this._expected = expected;

src/main/java/org/skyscreamer/jsonassert/JSONParser.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
* Simple JSON parsing utility.
99
*/
1010
public class JSONParser {
11+
private JSONParser() {}
12+
1113
/**
1214
* Takes a JSON string and returns either a {@link org.json.JSONObject} or {@link org.json.JSONArray},
1315
* depending on whether the string represents an object or an array.

0 commit comments

Comments
 (0)