Skip to content

assertArrayEquals overload is not found, tests doesn't compile #135 #464

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

Conversation

Vassiliy-Kudryashov
Copy link
Member

Description

JUnit 4.12 is minimal required version for API compatibility reasons.
We detect precise version via library name and its JAR names as fallback.
In case user have JUnit 4.11 or older in project configuration "our" JUnit from Maven should be put in library list upper than old one to provide proper imports in tests

Fixes #135

Type of Change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Manual Scenario

Add JUnit 4.11 or older in project dependency
Generate tests for examples.PrimitiveArrays, resulting code uses assertArrayEquals(boolean[], boolean[]) that is absent in JUnit 4.11 or older, code won't compile. At first stage of generation JUnit 4.13.2 should be installed and put higher than existing 4.11. As result test code can be compiled successfully.

Checklist (remove irrelevant options):

  • The change followed the style guidelines of the UTBot project
  • Self-review of the code is passed
  • No new warnings

resolving merge conflict with main branch, use the very last (just added to the list) library with matching name
@Vassiliy-Kudryashov Vassiliy-Kudryashov force-pushed the Vassiliy-Kudryashov/135-assertarrayequals-overload-is-not-found-tests-doesnt-compile branch from 3d5c582 to 94c695a Compare July 11, 2022 12:59
@Vassiliy-Kudryashov Vassiliy-Kudryashov enabled auto-merge (squash) July 11, 2022 13:02
@Vassiliy-Kudryashov Vassiliy-Kudryashov merged commit 4fd423b into main Jul 11, 2022
@Vassiliy-Kudryashov Vassiliy-Kudryashov deleted the Vassiliy-Kudryashov/135-assertarrayequals-overload-is-not-found-tests-doesnt-compile branch July 11, 2022 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

assertArrayEquals overload is not found, tests doesn't compile
2 participants