-
The following test fails, if `ChildClassA` is mocked (using for example `@Injectable` or `@Mocked`).
If I try to debug the running test, I see that the parent `equals` method isn't executed. `toString…
-
Hi there,
I am getting the following exception.
java.lang.RuntimeException: JSR/RET are not supported with computeFrames option...
I have isolated the problem, and it appears to be that I am gettin…
-
Use case:
1. There is a class which is annotated as Mocked for a unit test.
2. This class has a method which is recorded in an Expectations block.
3. The recorded method returns an Object type (not vo…
-
Hi, yet again!
So I have this issue that I can't debug.
I have a custom JDialog which I am trying to mock. When I call it's super constructor and then I try to use try catch block, I am getting a jav…
-
Trying to use withCapture to validate the object passed to a method, but if the method is never called a null pointer exception is raised on the assert statement following the withCapture instead of a…
-
Hi,
i got this linkage error since version 1.10.
In version 1.9 there is no problem.
Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mo…
-
I have two interfaces and I am mocking one method on each one. I'm using the @Capturing annotation. But simply having the @Mocked parameters in a different order causes one of the interfaces to not …
-
The Tutorial document state:
> If necessary, this default mocked instance can be replaced with a non-mocked one or with a different mocked instance; for that, simply assign the desired instance to t…
-
import mockit.Mock;
import mockit.MockUp;
import mockit.Mocked;
import org.junit.Test;
import javax.servlet.ServletOutputStream;
import static org.junit.Assert.assertNotNull;
/**
- Created by ruyan…
-
The current sources (https://github.com/jmockit/jmockit1/blob/master/main/src/mockit/internal/util/DefaultValues.java) do require Java 8 for compile (while the source/target level in `build.xml` is `1…