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

testPostRawBody failing on OSX #59

Closed
forana opened this issue Dec 23, 2014 · 1 comment
Closed

testPostRawBody failing on OSX #59

forana opened this issue Dec 23, 2014 · 1 comment

Comments

@forana
Copy link

forana commented Dec 23, 2014

org.junit.ComparisonFailure: expected:<'"@[���������������]-test-123-0.17736978...> but was:<'"@[???????????????]-test-123-0.17736978...>
    at org.junit.Assert.assertEquals(Assert.java:115)
    at org.junit.Assert.assertEquals(Assert.java:144)
    at com.mashape.unirest.test.http.UnirestTest.testPostRawBody(UnirestTest.java:145)

OSX 10.10, Oracle JDK 1.7.0_45
I assume this is a matter of default encoding and I'm not really worried about it, but it does mean inconsistent behavior.

@forana
Copy link
Author

forana commented Dec 23, 2014

Turns out I had two sources of error which were causing this to fail in the same way:

  1. CLI mvn test - JAVA_HOME wasn't set and maven was defaulting to 1.6 (and not complaining because pom.xml has no target for source compatibility). D'oh
  2. Eclipse thought the file encoding should be ascii, not UTF-8.

Closing.

@forana forana closed this as completed Dec 23, 2014
ryber added a commit that referenced this issue Feb 24, 2019
…quest basis and also allows for changing the default expected encoding from UTF-8
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

1 participant