-
The $advice mock method only works if there is at least one another, usual mock method too.
For example the following test does work. It shows that the mock methods are running. The fn2 mock method a…
-
```
The annotation @Mock doesn't allow me to define the mock answers, like
RETURNS_MOCKS, RETURNS_SMART_NULLS, RETURNS_DEEP_STUBS, etc.
So i need to call Mockit.mock(anyInterface.class, RETURNS_MOCK…
-
While trying to generate a mockup for
oracle.wsm.policy.model.impl.SimpleAssertion
SimpleAssertion simpleAsserter = new MockUp() {
}.getMockInstance();
if fails with jmockup since version 1.10+.
I…
-
```
I try to verify a method with 3 parameters. Mockit just says "Argument(s)
are different!".
Now it is very hard to find out which argument is different since I have
three of them and the "toString…
-
When I use jmockit with SpringJUnit4ClassRunner, somehow createTest() is called twice. It causes initialization issue to some TestExecutionListener.
This is a example test case to reproduce this issu…
-
```
I try to verify a method with 3 parameters. Mockit just says "Argument(s)
are different!".
Now it is very hard to find out which argument is different since I have
three of them and the "toString…
-
We have an internal library in which parts of the library implement a global interface. Sometimes, the implementation of this interface is an anonymous class. We are trying to partially mock all the…
-
This is holding on to instances of mockit.internal.mockups.MockInvocation creating massive memory leaks in the process for version 1.14 of Jmockit.
-
```
Caused by: java.lang.IllegalArgumentException: No constructor in tested class that can be satisfied by available injectables
.....
disregarded because parameter names are not available
```
I'm se…
-
Hello,
I am using jmockit latest release in project and coverage report is getting failed due mock url class. i read the release history and saying that issue is already resolved but i am getting h…