1
0
Fork 0
mirror of https://github.com/ethauvin/JSON-java.git synced 2025-06-17 07:50:52 -07:00
Commit graph

270 commits

Author SHA1 Message Date
run2000
e57881f8fa Fail when exceptions are not thrown as expected
The idiom was started in the first few methods, but not continued further down where JSONException was expected. False success may have resulted.
2016-07-25 09:44:43 +10:00
Nicholas Cull
efe33a1e37 Fix comment. 2016-07-24 19:57:01 +10:00
Nicholas Cull
1246e12827 Factor out Writer from Appendable tests. 2016-07-24 19:39:52 +10:00
Nicholas Cull
ffcfa66d77 Add JSONString test class.
This set of tests demonstrates what happens when JSONString returns various results from its toJSONString() method. Tests for null returns and exceptions thrown. Also tests what happens for non-JSONString objects. The intent is to cover JSONObject's valueToString() and writeValue() methods.
2016-07-24 18:56:08 +10:00
Nicholas Cull
ae77b5cd83 Tests for deep copy and mutability of toList() and toMap().
Both toMap() and toList() return deep copies, which are also mutable. That is, any changes to the JSONObject or JSONArray do not affect the newly create Map or List, and vice-versa. The resulting objects can be altered.
2016-07-23 22:51:50 +10:00
Nicholas Cull
72c2b911bf Tests for toString(), write(), toList(), and toMap().
Explicitly test variations of toString() and write() for different indent levels, and different method overloads. Also create some tests for the new toList() and toMap() methods for coverage improvements to JSONArray and JSONObject.
2016-07-23 22:33:19 +10:00
Nicholas Cull
c3ba4bdbe5 Nesting depth test works as expected. 2016-07-23 19:12:51 +10:00
Sean Leary
71c1eba1e7 Merge pull request #51 from johnjaylward/VerifyOptConversions
Verify opt method conversions for JSONArray and JSONObject
2016-07-08 22:31:48 -05:00
John J. Aylward
c2de224711 Verify opt method conversions for JSONArray and JSONObject 2016-07-08 16:58:58 -04:00
Sean Leary
01af31718e Merge pull request #50 from johnjaylward/issue240
Tests for Issue #240 in JSON-Java
2016-06-17 09:36:42 -05:00
John J. Aylward
1204ea9dcf fixes a typo 2016-06-17 00:04:27 -04:00
John J. Aylward
c5deff636b updates README for new project layout 2016-06-16 23:59:34 -04:00
John J. Aylward
46a1c9acf9 Adds test case to confirm the parsing of control characters 2016-06-16 13:02:08 -04:00
John J. Aylward
80f9e48e64 Moves src folder to simplify build.gradle configuration. If JSON-Java source is merged, it's src fold would now be src/main/java/org.json/ instead of src/main/org.json as well. 2016-06-16 12:20:54 -04:00
johnjaylward
0e0f3f2167 Merge pull request #1 from stleary/master
update from origin
2016-06-16 11:44:09 -04:00
Sean Leary
40f170b508 Merge pull request #49 from madsager/master
Add test that an invalid escape sequence results in a JSONException a…
2016-06-07 21:29:25 -05:00
Mads Ager
c7fdada0fd Add test that an invalid escape sequence results in a JSONException and not a NumberFormatException. 2016-06-02 16:41:43 +02:00
Sean Leary
51bcbebaa8 Merge pull request #48 from erosb/master
unittests for stleary/JSON-Java#233
2016-05-20 21:12:12 -05:00
Bence Erős
a1893ebc02 unittests for stlear/JSON-Java#233 2016-05-16 14:54:01 +02:00
stleary
8ed0362683 convert remaining JsonPath expressions to JSONPointer 2016-05-14 13:38:46 -05:00
stleary
15f48a0500 convert tests to use JSONPointer where practical 2016-05-14 11:59:24 -05:00
stleary
45cbc66f5b add coverage for JSONObject, JSONArray queryFrom() 2016-05-14 09:26:03 -05:00
stleary
06ae87c456 exclude resources from test 2016-05-13 23:22:54 -05:00
Sean Leary
7038ea884e Merge pull request #47 from stleary/add-to-test-suite-and-fix-resource
add JSONPointerTest to test suite, fix resource for gradle build
2016-05-13 23:17:10 -05:00
stleary
0112d82755 add JSONPointerTest to test suite, fix resource for gradle build 2016-05-13 23:13:06 -05:00
Sean Leary
46044bfc51 Merge pull request #46 from erosb/master
Tests for JSON Pointers
2016-05-13 22:47:14 -05:00
Sean Leary
a9ff159c78 Update README.md 2016-05-13 15:17:22 -05:00
Sean Leary
b843d67a92 Update README.md 2016-05-07 07:03:50 -05:00
Sean Leary
691734f342 Update README.md 2016-05-07 07:03:30 -05:00
Sean Leary
ccc7a7af29 Update README.md 2016-05-07 07:02:50 -05:00
Bence Erős
adb3118d31 added test for checking if the JSONPointer is immutable 2016-05-05 16:00:15 +02:00
Bence Erős
2eed4be5fc one more test for null-check in Builder#append(String) 2016-05-03 23:42:26 +02:00
Bence Erős
6edc093803 adding unittests for JSPONPointer#toString(), toURIFragment() and its builder class 2016-05-03 23:20:17 +02:00
Sean Leary
77d0873abd Merge pull request #45 from captainIowa/master
Added unit tests for escaped quotes.
2016-05-01 22:55:49 -05:00
Sean Leary
052ce94a34 Update README.md 2016-05-01 22:53:53 -05:00
stleary
4a3565afb3 unit test integration 2016-05-01 22:47:23 -05:00
Bence Erős
e748c60eb1 tests for improved failure handling 2016-04-26 23:31:43 +02:00
Bence Erős
f857dda5d8 removing some deprecated commented code 2016-04-26 23:03:01 +02:00
Bence Erős
66f740eb45 rolling back unwanted gitignore change in previous commit 2016-04-26 23:02:26 +02:00
Bence Erős
6211384f87 tests for url fragment notation handling, moving test document to separate file 2016-04-26 23:01:18 +02:00
Brian Russell
e00191798e Added unit tests for escaped quotes. 2016-04-24 23:04:12 -04:00
Bence Erős
9c47ba299d initial test for JSONPointer class 2016-04-18 21:49:14 +02:00
Sean Leary
8f16e065c5 Merge pull request #39 from johnjaylward/FixNegativeZero
Fix negative zero
2016-01-30 15:47:06 -06:00
John J. Aylward
974c09b22a Fixes typo in assert 2016-01-27 15:02:37 -05:00
John J. Aylward
bd958e0830 fixes formatting 2016-01-27 11:36:15 -05:00
John J. Aylward
67d888e9be Adds test cases to verify that -0 and -0.0 are processed as Double 2016-01-27 11:32:11 -05:00
Sean Leary
d3b197b1b9 Merge pull request #37 from stleary/move-files-to-maven-friendly-dirs
Move files to maven friendly dirs. Hope it works...
2016-01-05 20:46:43 -06:00
stleary
706d898648 latest 2016-01-03 21:39:44 -06:00
stleary
ace08f1944 latest 2016-01-03 21:39:30 -06:00
stleary
280ce71285 tabs to spaces 2016-01-01 13:54:47 -06:00