-
Bug
-
Resolution: Obsolete
-
Major
-
None
-
None
-
None
-
None
Powermock is a framework for mocking static methods (this is a tricky thing to do). By default you will run it using @RunWith annotation, however since the arquillian has it's own @RunWith(Arquillian.class) annotation, it provides an option to use the mocking using the junit.Rule. This, however, makes the tests fail.
The difference is in the registry.getExportedInstance() for the DEFAULT addon. In one it returns the class, in the other it does not.
Recently, there was added another way of running the powermock along arquillian using java agent, even though it is not easy to make this work, it looks it fails on same error.
Error:
java.lang.IllegalStateException: Test runner could not locate test class [org.jboss.windup.rules.java.NotUnzippableFileTest] in any deployed Addon.
- relates to
-
FORGE-2125 Frequent errors like this "java.lang.IllegalStateException: Test runner could not locate test class [org.jboss.windup.reporting.FreeMarkerIterationOperationTest] in any deployed Addon."
-
- Closed
-