You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by Dayakar <da...@gmail.com> on 2013/07/10 13:36:05 UTC

Unable to use CamelTestSupport with PowerMock

Hi, 

Iam using CamelSpringTestSupport class to write my JUnit. 

But in one scenario i want to use PowerMock too. 

If i use PowerMock with CamelTestSupport its giving following error 

Error: 
java.lang.IllegalStateException: Failed to transform class with name
org.apache.camel.test.junit4.CamelTestSupport. Reason: [source error] cannot
find constructor
org.apache.camel.impl.InterceptSendToMockEndpointStrategy(java.lang.String,boolean) 

Below is my SampleCode: 

@RunWith(PowerMockRunner.class) 
@PrepareForTest({SecurityUtil.class }) 
public class TestCEM extends CamelTestSupport { 

        @Test 
        public void testeventProcessorFailureDetails(){ 

        } 
} 

Could anyone can help in this 



--
View this message in context: http://camel.465427.n5.nabble.com/Unable-to-use-CamelTestSupport-with-PowerMock-tp5735434.html
Sent from the Camel Development mailing list archive at Nabble.com.