Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy 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 listupper 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 puthigher 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-KudryashovVassiliy-Kudryashovforce-pushed theVassiliy-Kudryashov/135-assertarrayequals-overload-is-not-found-tests-doesnt-compile branch from3d5c582 to94c695aCompareJuly 11, 2022 12:59
@Vassiliy-KudryashovVassiliy-Kudryashovenabled auto-merge (squash)July 11, 2022 13:02
@Vassiliy-KudryashovVassiliy-Kudryashov deleted the Vassiliy-Kudryashov/135-assertarrayequals-overload-is-not-found-tests-doesnt-compile branchJuly 11, 2022 14:34
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@EgorkaKulikovEgorkaKulikovEgorkaKulikov approved these changes

Assignees

No one assigned

Labels

None yet

Projects

Archived in project

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

assertArrayEquals overload is not found, tests doesn't compile

3 participants

@Vassiliy-Kudryashov@EgorkaKulikov

[8]ページ先頭

©2009-2025 Movatter.jp