@Extends not working

30 views
Skip to first unread message

Eléna S.

unread,
May 7, 2014, 5:00:51 AM5/7/14
to jna...@googlegroups.com
Hello,

I am using the Apache Camel framework and tried to rewrite my unit tests into Jnarion Specs.

As all Camel tests need to extend the CamelTestSupport class i used the @Extend annotation but it is not working.

My example spec:

@Extends(CamelTestSupport)
describe ExampleSpecForCamel {

@EndpointInject(uri="mock:result")
MockEndpoint resultEndpoint

@Produce(uri="direct:start")
ProducerTemplate template
}

And the generated code:

@Named("ExampleSpecForCamel")
@RunWith(ExampleGroupRunner.class)
@Extends(CamelTestSupport.class)
@SuppressWarnings("all")
public class ExampleSpecForCamel {
  @EndpointInject(uri = "mock:result")
  MockEndpoint resultEndpoint;
  
  @Produce(uri = "direct:start")
  ProducerTemplate template;
}

What I expected would be this:

public class ExampleSpecForCamel extends CamelTestSupport
 
 
Reply all
Reply to author
Forward
0 new messages