Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@afds
Copy link

@afds afds commented Nov 24, 2021

Answers.get() was removed in mockito 4 and was deprecated since mockito 2.1.0

https://github.com/mockito/mockito/blob/release/3.x/src/main/java/org/mockito/Answers.java#L89 states

as of 2.1.0 Use the enum-constant directly, instead of this getter. This method will be removed in a future release<br>
E.g. instead of <code>Answers.CALLS_REAL_METHODS.get()</code> use <code>Answers.CALLS_REAL_METHODS</code> .

Answers.get() was removed in mockito 4 and was deprecated since mockito 2.1.0

https://github.com/mockito/mockito/blob/release/3.x/src/main/java/org/mockito/Answers.java#L89 states
@deprecated as of 2.1.0 Use the enum-constant directly, instead of this getter. This method will be removed in a future release<br>
     * E.g. instead of <code>Answers.CALLS_REAL_METHODS.get()</code> use <code>Answers.CALLS_REAL_METHODS</code> .
@afds
Copy link
Author

afds commented Nov 24, 2021

There another PR - #1113

@afds afds closed this Nov 24, 2021
@afds afds deleted the compatible-with-mockito4 branch November 24, 2021 12:31
@afds afds restored the compatible-with-mockito4 branch December 3, 2021 12:45
@afds afds reopened this Dec 3, 2021
@afds afds closed this Feb 4, 2022
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.

1 participant