You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the expected output?
Test passes
What do you see instead?
org.mockito.exceptions.verification.TooManyActualInvocations:
simpleFoo.setFoo(" ");
Wanted 1 time:
-> at fr.generix.metier.bc4j.produit.SimpleTest2.testSetFoo(SimpleTest2.java:18)
But was 3 times. Undesired invocation:
-> at fr.generix.metier.bc4j.produit.SimpleTest2.testSetFoo(SimpleTest2.java:16)
at fr.generix.metier.bc4j.produit.SimpleTest2.testSetFoo(SimpleTest2.java:18)
What version of the product are you using?
PowerMock 1.6.2
TestNG 6.9.4
On what operating system?
Win 10
Please provide any additional information below.
If
is used instead of PowerMockito's one - test passes.
Most annoyingly, if
@PrepareForTest({ SimpleTest2.SimpleFoo.class })
is not on the current test suite class but on any other, then the test either passes or not. I guess it depends on order of tests execution. Still, it adds unpredicatability to tests results which is very annoying.
The text was updated successfully, but these errors were encountered:
What steps will reproduce the problem?
Code:
What is the expected output?
Test passes
What do you see instead?
What version of the product are you using?
PowerMock 1.6.2
TestNG 6.9.4
On what operating system?
Win 10
Please provide any additional information below.
If
is commented out - test passes.
if
is used instead of PowerMockito's one - test passes.
Most annoyingly, if
is not on the current test suite class but on any other, then the test either passes or not. I guess it depends on order of tests execution. Still, it adds unpredicatability to tests results which is very annoying.
The text was updated successfully, but these errors were encountered: