-
I have this code which was working with jmockit 1.10, and has a strange behaviour since 1.12:
``` java
package test;
import mockit.Injectable;
import mockit.NonStrictExpectations;
import mockit.Test…
-
Hi there!
I am getting the following exception
java.lang.SecurityException: AWTEvent is missing AccessControlContext
It happens when running the following piece of code with JMockit 1.12 . However…
-
Hi there.
I am having difficulties mocking the java.awt.Window class.
I did try to mock it using the MockUp API as well as @Mocked API. Here are example tests attempting to mock the window :
```
…
-
On some JDKs we are getting
```
java.lang.IllegalStateException: Attempted to record invocation to mocked method from outside expectation block:
```
exception using JMockit 1.11.
Tested so far:
- j…
-
### Reproduction steps:
##### Create following files:
- Tool.java
``` java
public class Tool {
public void doIt() {
}
}
```
- ToolMock.java:
``` java
import mockit.Invocation;
import mockit.…
-
Hi yet again,
Environment -
JDK 1.7.0_51 32 bit
Win7 64 bit
JMockit 1.11
I have two issues to report. I think they are connected with each other.
ISSUE 1 - Original constructor gets called along …
-
JMockit: 1.10
Here is a code snippet
``` java
import java.math.BigDecimal;
import mockit.NonStrictExpectations;
import mockit.internal.UnexpectedInvocation;
import org.junit.Test;
public class Te…
-
It seems that since 1.12 `@Injectable` cascades but doesn't provide a way to stop the cascading.
-
All scenarios below (JMockit 1.9, 1.10, 1.11) work flawlessly with Oracle JDK 1.6:
`java -version`
> java version "1.6.0_45"
> Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
> Java HotSpot(TM)…
-
I have update JMockit from 1.12 to 1.13.
I have used for loop like this in Expectations().
new Expectations()
{
{
for(int i=0;i