-
Using:
* `powermock-module-junit4 2.0.0-beta.5`
* `powermock-api-mockito2 2.0.0-beta.5`
* `mockito-core 2.16.0`
I am having trouble using the `whenNew(Class).withAnyArguments()` when one of t…
-
Hey Guys,
I see an IllegalStateException when running one particular test.
**What steps will reproduce the problem?**
The following code fails each time it is run
_Testcase:_
```kotlin
pack…
-
```
Here is my class under test:
public class MockMe {
private static final MockMe ME = new MockMe();
public static MockMe getInstance() {
return ME;
}
}
And here is my te…
-
```
What steps will reproduce the problem?
- Have a unit test annotated with @RunWith(PowerMockRunner.class)
@PrepareForTest(MyEndpoint.class)
and use mockStatic(MyEndpoint.class); in the setUp me…
-
```
What steps will reproduce the problem?
- Have a unit test annotated with @RunWith(PowerMockRunner.class)
@PrepareForTest(MyEndpoint.class)
and use mockStatic(MyEndpoint.class); in the setUp me…
-
```
There seems to be an incompatibility issue between powermock and JaCoCo,
possibly related to JDK 7.
Attached is a small maven project which can be executed using "mvn clean
verify" to showcase …
-
```
There seems to be an incompatibility issue between powermock and JaCoCo,
possibly related to JDK 7.
Attached is a small maven project which can be executed using "mvn clean
verify" to showcase …
-
```
There seems to be an incompatibility issue between powermock and JaCoCo,
possibly related to JDK 7.
Attached is a small maven project which can be executed using "mvn clean
verify" to showcase …
-
There is IllegalAccessError while calling method with switch(enumValue) block on spy-object.
But if we replace switch block with if clause, it'll work.
```java
package com.example;
import a…
-
```
Here is my class under test:
public class MockMe {
private static final MockMe ME = new MockMe();
public static MockMe getInstance() {
return ME;
}
}
And here is my te…