Enovea / fitnesse-launcher-maven-plugin

Automatically exported from code.google.com/p/fitnesse-launcher-maven-plugin
0 stars 0 forks source link

java.lang.NoClassDefFoundError: org/powermock/core/transformers/impl/MainMockTransformer #24

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a test slim fitnesse fixture.
2. Call 
PowerMockAgentTestInitializer.initialize(CDSSingleNameContractConductorTest.clas
s); from the contruction or static initializer
3. Run the "run-tests" goal

What is the expected output? PowerMockito should be loaded successfully just 
like when you run the fixture manually through the wiki page.

What do you see instead?
An exception java.lang.NoClassDefFoundError: 
org/powermock/core/transformers/impl/MainMockTransformer is thrown. Upon 
debugging, the powermock libraries are not being loaded. However, it is already 
defined in the !path which was automatically declared by the plugin.

What version of the product are you using?  1.3.0

On what operating system? Windows 7

Please provide any additional information below.
It seems like the run-test goal is not loading the jars in !path into the 
classpath which causes the no class def fuond error.

Thanks,
Pipo

Original issue reported on code.google.com by wsell...@gmail.com on 30 Sep 2013 at 9:23

GoogleCodeExporter commented 8 years ago
I have tried to reproduce this as best I can, given the information above.
I have added a slim test to the java example project at r397, which passes both 
in wiki mode and auto mode.

Without more information, such as exact pom.xml, a stacktrace, screenshot or 
the nature of CDSSingleNameContractConductorTest, there's not much more I can 
do with this. Marking as 'invalid'.

Original comment by stewart@javahelp.co.uk on 29 Jun 2014 at 1:54