John J. Aylward
b6ed0d4178
fix failing test case in Java1.7
2020-06-03 19:37:08 -04:00
Sean Leary
19bb6fd606
Merge pull request #453 from johnjaylward/UseBigDecimalDefaultParse
...
changes number parsing to use BigDecimal as the backing type
2020-06-01 14:03:04 -05:00
John J. Aylward
56d33b8061
changes number parsing to use BigDecimal as the backing type
...
* updated tests to support BigDecimal as the backing type for numbers
* updated some test resource handling to java7 try-with-resources format
* cleaned up some other minor compiler warnings
2020-05-26 10:10:36 -04:00
John J. Aylward
6029dece41
ensure key names are consistent when parsing the cookie string since
...
cookie-keys are not case sensitive, but json-keys are.
2020-05-26 09:11:10 -04:00
John J. Aylward
d334b58f45
Made more corrections to Cookie.ToString.
...
1. Made Cookie Name and Value properties case insensitive
2. Throws exception on illegal Cookie Name
3. Doesn't emit "false" flag values
4. Properly escape key-value attributes.
2020-05-26 08:55:19 -04:00
John J. Aylward
b4a75c7bf8
Updates Cookie class to be a more generic in attribute parsing and emit.
...
This is so the library can age better as new attributes are added to RFC
revisions.
2020-05-26 08:53:37 -04:00
stleary
2b0a8838ef
gradle support
2020-05-22 11:17:44 -05:00
Benjamin Gehrels
1265897f4e
Merge remote-tracking branch 'tests/master' into upstream
2020-04-29 20:26:05 +02:00
Benjamin Gehrels
74e4932cfc
Transform the repository into standard maven format and merge the pom.xml of the release repo
2020-04-29 19:24:44 +02:00
Alan Wang
08719d4b3a
Apply suggestions from code review
...
Co-Authored-By: Sean Leary <stleary@gmail.com>
2019-12-30 09:51:08 +08:00
Alanscut
16da56eb34
improve the confused assert message
2019-12-28 17:53:27 +08:00
Sean Leary
18eddf75c3
Merge pull request #95 from johnjaylward/StandardizeExceptionMessages
...
Test cases updates for standardized exception messages
2019-09-24 20:30:08 -05:00
John J. Aylward
a24db2cce2
remove unused import
2019-09-17 11:15:25 -04:00
John J. Aylward
67e59888a2
add second case for data in #484
2019-09-17 11:14:41 -04:00
John J. Aylward
fb01575394
Test cases updates for standardized exception messages
2019-09-17 10:47:16 -04:00
John J. Aylward
3e7a0b13d1
new test case for issue 484
2019-09-17 10:36:48 -04:00
meiskalt7
fa173fa51a
add test for xsi:nil to null conversion disabled
2019-04-21 00:53:39 +07:00
meiskalt7
614e8359b9
add test for xsi:nil to null conversion
2019-04-18 21:42:57 +07:00
Sean Leary
437ce10ee3
Merge pull request #91 from johnjaylward/FixEOF
...
Tests for https://github.com/stleary/JSON-java/pull/452
2018-12-13 09:14:39 -06:00
Sean Leary
cfec288fe8
Merge pull request #90 from stleary/tests-for-xml-config
...
xml parser config tests
2018-12-11 07:27:04 -06:00
John J. Aylward
e7f7d348cd
* updates tests to cover more cases of tokenizing
...
* uncomments tests that should now work
2018-12-10 11:45:10 -05:00
Sean Leary
e699abb1c6
Merge pull request #61 from johnjaylward/XmlEscape
...
Test cases Xml escapes
2018-12-08 20:09:03 -06:00
stleary
d0ea807884
xml parser config tests
2018-12-08 14:51:01 -06:00
stleary
e4186e072a
reduce number of iterations to shorten test time
2018-12-08 11:29:44 -06:00
John J. Aylward
3e6c0a51bd
update expected exception text in tests to match unified number getters
2018-10-04 16:02:50 -04:00
John J. Aylward
3b8b0a681c
Update test cases to verify performance change and verify opt/getBigDecimal match
2018-10-02 12:38:17 -04:00
Andrei Paikin
d00501eabd
add usage of isEmpty method
2018-05-25 22:47:05 +03:00
John J. Aylward
3fe4a767e6
Fixes incorrect syntax for JSONPointer in test.
2018-03-20 22:15:25 -04:00
John J. Aylward
43f3f5e80b
Add another test
2018-03-19 09:49:42 -04:00
John J. Aylward
f4201cf318
Test cases for issue described in https://github.com/stleary/JSON-java/issues/410 .
2018-03-19 09:34:13 -04:00
Sean Leary
770cb9c4e5
Merge pull request #84 from johnjaylward/FixBeanKeyNameing
...
New test cases for Bean Name customization
2018-03-14 21:19:11 -05:00
John J. Aylward
193a3823b5
new test cases to support bean annotation
2018-03-11 16:56:07 -04:00
John J. Aylward
aa5e80bc8d
add test cases for null keys
2018-03-07 12:11:17 -05:00
dengjianbao
cc2ed79e57
Correct the message to match the function
2018-02-02 22:54:08 +08:00
John J. Aylward
dae88d7c5c
fix method names
2017-11-06 10:35:49 -05:00
John J. Aylward
08d93f3eb5
test cases for issue https://github.com/stleary/JSON-java/issues/379
2017-11-06 10:27:45 -05:00
John J. Aylward
dfa37a298f
Add more tests for unclosed arrays
2017-10-30 08:53:50 -04:00
John J. Aylward
bde6ba1c52
Updates exception expected message
2017-10-30 08:53:50 -04:00
John J. Aylward
52ecc89702
New test to verify unclosed array
2017-10-30 08:53:50 -04:00
John J. Aylward
2713f2e2a4
Adds testing for unicode entities
2017-08-19 18:45:53 -04:00
John J. Aylward
cb61bbf720
New tests for XML unescaping
2017-08-19 18:19:22 -04:00
Miguel
b90bee0f22
Update error message location (+1)
...
`JSONTokener.back()` call removed from `JSONObject(JSONTokener)` constructor.
2017-08-14 13:05:23 -04:00
Miguel
68b262914d
JSONObject(JSONTokener) now points to last character of duplicate key
...
Updating exception message accordingly (position -1)
2017-08-10 19:06:55 -04:00
Miguel
df466db7b9
Replacing tabs with 4 spaces
2017-08-09 21:59:08 -04:00
Miguel
1acb18091a
Remove System.out.println
2017-08-09 21:57:10 -04:00
Miguel
fefd616d73
Unit tests for JSONTokener
2017-08-09 21:51:46 -04:00
John J. Aylward
f2f6ad3b1f
* Fixes Gradle config so tests are only run once
...
* Adds missing test to the test suite
2017-07-19 20:34:59 -04:00
Sean Leary
cf411b3187
Merge pull request #75 from johnjaylward/PopulateMapMoreStrict
...
Populate map more strict
2017-07-19 18:57:55 -05:00
John J. Aylward
aa562b5ec3
Update test for issue https://github.com/stleary/JSON-java/issues/356
2017-07-15 12:19:02 -04:00
John J. Aylward
38d11227ee
Adds exception tests
2017-07-09 19:05:00 -04:00