Navigation Menu

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

Unit test fixes #525

Merged
merged 3 commits into from Jun 4, 2020
Merged

Unit test fixes #525

merged 3 commits into from Jun 4, 2020

Conversation

johnjaylward
Copy link
Contributor

@johnjaylward johnjaylward commented Jun 3, 2020

What problem does this code solve?
Fixes #523

  • Adds Gradle wrapper for easier use of the gradle build tool
  • Removes "Test Suite" configuration class and the "main"

Risks
None. No changes to library code, just supporting items

Changes to the API?
No

Will this require a new release?
No

Should the documentation be updated?
No

Does it break the unit tests?
No

Was any code refactored in this commit?

Review status

viveksacademia4git and others added 3 commits June 3, 2020 12:14
- commented `java() {...}` within build.gradle
- added following files
   1. gradlew
   2. gradlew.bat (for windows)
   3. gradle/wrapper/gradle-wrapper.properties (for ./gradlew command execution)
   4. gradle/wrapper/gradle-wrapper.jar (for ./gradlew command execution)
@stleary
Copy link
Owner

stleary commented Jun 4, 2020

@johnjaylward gradle-wrapper.properties specify gradle-6.3, but the test case was fixed in Java 1.7? Can you clarify?

@johnjaylward
Copy link
Contributor Author

johnjaylward commented Jun 4, 2020

The test case was using a function that wasnt available until java8. I changed it to not use that function and instead use manual casting and addition

@stleary
Copy link
Owner

stleary commented Jun 4, 2020

APPROVED
Thanks for the quick effort! A couple more failing tests, but this gets Gradle back in play.

@stleary stleary merged commit 95c6373 into stleary:master Jun 4, 2020
@johnjaylward
Copy link
Contributor Author

Yes, from my testing here: https://github.com/johnjaylward/JSON-java/actions you can see that most of the tests fail in Java7 due to comparison differences due to hash reordering.

@johnjaylward johnjaylward deleted the unitTestFixes branch June 4, 2020 00:53
This was referenced Mar 10, 2021
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

Successfully merging this pull request may close these issues.

Unit tests appear to be broken - recent merge?
3 participants