Skip to content
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

Closed
santhakr opened this issue Jan 7, 2017 · 6 comments
Closed

Test Failures & Errors #18

santhakr opened this issue Jan 7, 2017 · 6 comments

Comments

@santhakr
Copy link

santhakr commented Jan 7, 2017

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

@taowen
Copy link
Contributor

taowen commented Jan 8, 2017

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

@taowen
Copy link
Contributor

taowen commented Jan 12, 2017

mvn test is passing in latest master branch now

@taowen taowen closed this as completed Jan 12, 2017
@alex-krash
Copy link

Actually, I still have such error (using master branch code)

@taowen taowen reopened this Jun 28, 2017
@taowen
Copy link
Contributor

taowen commented Jun 28, 2017

@alex-krash please provide more info

@alex-krash
Copy link

@taowen , here is an example of my test, failing:
https://gist.github.com/alex-krash/2c4ab0405caa53d098ca5861b60e7bbe

@taowen
Copy link
Contributor

taowen commented Jun 29, 2017

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.

@taowen taowen closed this as completed Jun 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants