-
Notifications
You must be signed in to change notification settings - Fork 511
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test Failures & Errors #18
Comments
due to class shadowing, streaming tests and non streaming test can not run in same jvm, you can use this for the time being https://github.com/json-iterator/java/blob/master/src/test/java/com/jsoniter/AllTests.java I will fix mvn test later |
|
Actually, I still have such error (using master branch code) |
@alex-krash please provide more info |
@taowen , here is an example of my test, failing: |
this error is expected. You can not enableStreamingSupport after any api has been invoked. It is a YES/NO question, you enableStreamingSupport at the very beginning. |
I get below failures & errors when doing mvn install:
Results :
Failed tests: test(com.jsoniter.datetime.TestJdkDatetime): expected:<"19[70-01-01T08:00:00.000+]0800"> but was:<"19[69-12-31T16:00:00.000-]0800">
test_read_byte(com.jsoniter.TestIO): expected:<49> but was:<0>
test_unread_byte(com.jsoniter.TestIO): expected:<49> but was:<0>
Tests in error:
test_empty_array_as_null(com.jsoniter.TestDemo): readString: expect n or ", head: 1, peek: [, buf: []
test_read_bytes(com.jsoniter.TestIO): javassist.CannotCompileException: by java.lang.LinkageError: loader (instance of sun/misc/Launcher$AppClassLoader): attempted duplicate class definition for name: "com/jsoniter/IterImpl"
test_read_any_in_streaming(com.jsoniter.TestReadAny): IterImplSkip: do not know how to skip: 0, head: 0, peek: , buf:
test_utf8(com.jsoniter.TestString): readString: expect n or ", head: 0, peek: , buf:
test_unicode_escape(com.jsoniter.TestString): readString: expect n or ", head: 0, peek: , buf:
test_string_across_buffer(com.jsoniter.TestString): readString: expect n or ", head: 0, peek: , buf:
test_normal_escape(com.jsoniter.TestString): readString: expect n or ", head: 0, peek: , buf:
Tests run: 158, Failures: 3, Errors: 7, Skipped: 0
The text was updated successfully, but these errors were encountered: