mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-09-06 10:45:23 +08:00
fix: flakiness in JSONMLTest#testToJSONObject_reversibility
This commit is contained in:
@@ -8,6 +8,7 @@ import static org.junit.Assert.*;
|
||||
|
||||
import org.json.*;
|
||||
import org.junit.Test;
|
||||
import org.skyscreamer.jsonassert.JSONAssert;
|
||||
|
||||
/**
|
||||
* Tests for org.json.JSONML.java
|
||||
@@ -763,7 +764,7 @@ public class JSONMLTest {
|
||||
final JSONObject revertedObject = JSONML.toJSONObject(xml, false);
|
||||
final String newJson = revertedObject.toString();
|
||||
assertTrue("JSON Objects are not similar",originalObject.similar(revertedObject));
|
||||
assertEquals("original JSON does not equal the new JSON",originalJson, newJson);
|
||||
JSONAssert.assertEquals("original JSON does not equal the new JSON", originalJson, newJson, false);
|
||||
}
|
||||
|
||||
// these tests do not pass for the following reasons:
|
||||
|
Reference in New Issue
Block a user