-
JMockit version: 1.49, but happens in 1.48
We noticed weird behavior after updating JMockit from 1.46 to 1.49 in some of our tests. Mocked class still evaluates parameters passed to another constru…
-
When Faking a Class, JMockit sometimes returns a result of the wrong type from invocation.proceed(); in the $advice method.
This causes a ClassCastException.
The enclosed example uses ByteBuffer &…
-
Build: artifacts/azure-toolkit-for-intellij-LATEST-EAP-SNAPSHOT.PR.3572.07-09-2019.zip
system: windows
Repro Steps:
1. Create a SBT project
2. Create a config file, like HDI config file
3. Star…
-
Please provide the following information:
* Version of JMockit that was used:
1.49
* Description of the problem or enhancement request:
mockit.internal.startup
function :retransformClass
some…
-
Tests currently fail when building with Java 9 (and Gradle 4.8), because jmockit fails to bind its agent into the running JVM:
```
java.lang.RuntimeException: java.io.IOException: Can not attach t…
-
Please provide the following information:
* Version of JMockit that was used:
1.49
* Description of the problem or enhancement request:
I use Spock, a Groovy framework based on JUnit, for wri…
-
Hi,
I get the following stack trace trying to run tests with JMockit:
Ausnahmebedingung in Thread "main"# START NON-TRANSLATABLEjava.lang.reflect.InvocationTargetException
at sun.reflect.NativeM…
-
-
public class ExpectationsTest {
@Mocked
Calendar cal;
@Test
public void testRecordOutside() {
new Expectations() {
{
// 对cal.get方法进行录制,并…
-
* Version of JMockit: 1.49
* Java version: 1.8.171
I run the follow test program:
```
package x;
import mockit.Invocation;
import mockit.Mock;
import mockit.MockUp;
public class ATest {…