Skip to content

Commit 56123c9

Browse files
committed
AssertNotEquals preserve formatting
1 parent 9cacc7e commit 56123c9

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77

88
/**
99
* <p>A set of assertion methods useful for writing tests methods that return JSON.</p>
10-
*
10+
*
1111
* <p>There are two modes, strict and non-strict. In most cases, you will probably want
1212
* to set strict to <i>false</i>, since that will make the tests less brittle.</p>
13-
*
13+
*
1414
* <p>Strict tests require all of the elements requested to be returned, and only those elements
1515
* (ie, the tests are non-extensible). Arrays of elements must be returned in the same
1616
* order as expected. For example, say I'm expecting:</p>
17-
*
17+
*
1818
* <code>{id:123,things['a','b','c']}</code>
1919
*
2020
* <p>The following would match when doing non-strict checking, but would fail on strict checking:</p>
@@ -71,7 +71,7 @@ public static void assertNotEquals(String expectedStr, JSONObject actual, boolea
7171
/**
7272
* Asserts that the JSONObject provided matches the expected string. If it isn't it throws an
7373
* {@link AssertionError}.
74-
*
74+
*
7575
* @param expectedStr Expected JSON string
7676
* @param actual JSONObject to compare
7777
* @param compareMode Specifies which comparison mode to use
@@ -113,7 +113,7 @@ public static void assertNotEquals(String expectedStr, JSONObject actual, JSONCo
113113
/**
114114
* Asserts that the JSONArray provided matches the expected string. If it isn't it throws an
115115
* {@link AssertionError}.
116-
*
116+
*
117117
* @param expectedStr Expected JSON string
118118
* @param actual JSONArray to compare
119119
* @param strict Enables strict checking
@@ -141,7 +141,7 @@ public static void assertNotEquals(String expectedStr, JSONArray actual, boolean
141141
/**
142142
* Asserts that the JSONArray provided matches the expected string. If it isn't it throws an
143143
* {@link AssertionError}.
144-
*
144+
*
145145
* @param expectedStr Expected JSON string
146146
* @param actual JSONArray to compare
147147
* @param compareMode Specifies which comparison mode to use
@@ -181,7 +181,7 @@ public static void assertNotEquals(String expectedStr, JSONArray actual, JSONCom
181181
/**
182182
* Asserts that the JSONArray provided matches the expected string. If it isn't it throws an
183183
* {@link AssertionError}.
184-
*
184+
*
185185
* @param expectedStr Expected JSON string
186186
* @param actualStr String to compare
187187
* @param strict Enables strict checking
@@ -209,7 +209,7 @@ public static void assertNotEquals(String expectedStr, String actualStr, boolean
209209
/**
210210
* Asserts that the JSONArray provided matches the expected string. If it isn't it throws an
211211
* {@link AssertionError}.
212-
*
212+
*
213213
* @param expectedStr Expected JSON string
214214
* @param actualStr String to compare
215215
* @param compareMode Specifies which comparison mode to use
@@ -243,7 +243,7 @@ public static void assertNotEquals(String expectedStr, String actualStr, JSONCom
243243
/**
244244
* Asserts that the json string provided matches the expected string. If it isn't it throws an
245245
* {@link AssertionError}.
246-
*
246+
*
247247
* @param expectedStr Expected JSON string
248248
* @param actualStr String to compare
249249
* @param comparator Comparator
@@ -277,7 +277,7 @@ public static void assertNotEquals(String expectedStr, String actualStr, JSONCom
277277
/**
278278
* Asserts that the JSONObject provided matches the expected JSONObject. If it isn't it throws an
279279
* {@link AssertionError}.
280-
*
280+
*
281281
* @param expected Expected JSONObject
282282
* @param actual JSONObject to compare
283283
* @param strict Enables strict checking
@@ -305,7 +305,7 @@ public static void assertNotEquals(JSONObject expected, JSONObject actual, boole
305305
/**
306306
* Asserts that the JSONObject provided matches the expected JSONObject. If it isn't it throws an
307307
* {@link AssertionError}.
308-
*
308+
*
309309
* @param expected Expected JSONObject
310310
* @param actual JSONObject to compare
311311
* @param compareMode Specifies which comparison mode to use
@@ -341,7 +341,7 @@ public static void assertNotEquals(JSONObject expected, JSONObject actual, JSONC
341341
/**
342342
* Asserts that the JSONArray provided matches the expected JSONArray. If it isn't it throws an
343343
* {@link AssertionError}.
344-
*
344+
*
345345
* @param expected Expected JSONArray
346346
* @param actual JSONArray to compare
347347
* @param strict Enables strict checking
@@ -369,7 +369,7 @@ public static void assertNotEquals(JSONArray expected, JSONArray actual, boolean
369369
/**
370370
* Asserts that the JSONArray provided matches the expected JSONArray. If it isn't it throws an
371371
* {@link AssertionError}.
372-
*
372+
*
373373
* @param expected Expected JSONArray
374374
* @param actual JSONArray to compare
375375
* @param compareMode Specifies which comparison mode to use

0 commit comments

Comments
 (0)