-
I'm getting a NoSuchMethodException when I try to call a method of an abstract class that has inherited a method from an interface with a return type of an enum but has not implemented it. If implemen…
-
JMockit 1.13 corrupts enum values after recording expectations. Version 1.12 is working.
Failing test:
import mockit.Mocked;
import mockit.NonStrictExpectations;
import org.testng.annotations.Test;
…
-
Hi
I have weird issue going on, this happens only on a linux VM where the test is run The tests hangs when it is trying to initialize the mock. Here is the snippet from thread dump
"RMI TCP Connec…
-
Whenever one mix Java and Spring annotations:
- org.springframework.beans.factory.annotation.Autowired
- javax.annotation.Resource
and create a test:
```
public class MyTest {
@Tested
pri…
-
Hi I am getting the below error when starting my server with jmockit-1.9.jar in classpath. Any idea how to resolve this? I am using junit-4.5.jar, testng-6.7.jar and jmockit-1.9.jar. and I have ensure…
-
Related to https://github.com/jmockit/jmockit1/issues/24 which describes problems when using gradle+testng+pitest+jmockit.
When using maven pitest plugin and a very simple project (a pom.xml, a "main…
-
I cannot tell what exactly is a problem here, but in the following example a() and b() are passed but c() fails. If you remove "extends Serializable" then all of them will be passed.
Windows7 x64, Ora…
ihoro updated
9 years ago
-
Mocked instance throws NullPointerException in Expectations() with JMockit 1.12 but it runs successfully with JMockit 1.11.
-
The following code runs fine with JMockit 1.11 but stop working with JMockit 1.12 with a NullPointerException at java.io.Writer.write():
```
import javax.faces.context.FacesContext;
import javax.face…
-
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…