-
Desired: failure message includes expected and actual json
Actual: Error message only says they aren't the same size.
see:
https://github.com/skyscreamer/JSONassert/blob/830efcf546d07f955d8a213…
-
According to JSONAssert `{"Foo":1} == {"Foo":1.0}`, but `[{"Foo":1}] != [{"Foo":1.0}]`. It seems to be deciding to use the number as a "unique key" to determine object identity within the array, whic…
-
java.lang.module.ResolutionException: Modules android.json and jsonassert export package org.json to module tomcat.embed.core
Because JSONAssert has a dependency on jsonassert, and because it defin…
-
I hope below code is self explanatory. If not:
I am composing a new JSONArray from String a and String b combined in a list. Then I am composing a new JSONArray from a single string which contains …
-
https://junit.org/junit5/docs/snapshot/user-guide/#writing-tests
```java
assertTrue('a' < 'b', () -> "Assertion messages can be lazily evaluated -- "
+ "to avoid construc…
-
Snippet below fails:(
```
import org.junit.Test;
import org.skyscreamer.jsonassert.JSONCompareMode;
import org.skyscreamer.jsonassert.JSONCompareResult;
import static org.assertj.core.api.Ass…
-
This assertions should fail, but they don't:
JSONAssert.assertEquals(
"{ \\\"value\\\": 1234567890.1234567890123456 }",
"{ \\\"value\\\": 1234567890.1234567000000000 }",
…
-
The following example:
```java
JSONAssert.assertEquals("null", "null", false);
```
result in this exception:
```
org.json.JSONException: Unparsable JSON string: null
```
but `null` is …
gimmi updated
3 years ago
-
The following line,
`JSONAssert.assertEquals("[{id:1},]" , "[{id:1},{}]" , true);`,
which inputs an invalid JSON string "[{id:1},]" to assertEquals,
will throw `java.lang.NullPointerException`.
(…
-
When two `JSONString` objects are compared with `org.skyscreamer.jsonassert.JSONCompare#compareJson`
then `org.skyscreamer.jsonassert.JSONCompareResult` does not have an error message with actual/ex…