camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem jiang <willem.ji...@gmail.com>
Subject Re: CamelSpringTestSupport with PowerMock
Date Wed, 10 Jul 2013 15:27:51 GMT
Can you submit a simple test case to show the error?
BTW, I just checked  code of InterceptSendToMockEndpointStrategy, it has the construction
with the parameter list of  (java.lang.String,boolean).
Can you check if you have more then one version of camel-core in you class path?

--  
Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English)
          http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem





On Wednesday, July 10, 2013 at 6:20 PM, Dayakar wrote:

> 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/CamelSpringTestSupport-with-PowerMock-tp5735421.html
> Sent from the Camel - Users mailing list archive at Nabble.com (http://Nabble.com).




Mime
View raw message