camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <>
Subject Re: Would like to work on CAMEL-6070
Date Thu, 26 Feb 2015 09:09:54 GMT
With the help of @RunWith from JUnit you can inspect the test class with the annotation in
you custom runner. So we don’t need to ask the user to extend the CamelTestSupport anymore.

If we still want to support the annotation for the test class which extends CamelTestSupport,
we just need find a way to check the annotation with the reflection APIs.

ReflectionHelper just provides some callbacks for you to inspect the annotations on the filed
or the method, maybe we need add a new method for inspecting the annotation of the class.

Willem Jiang

Red Hat, Inc.
Blog: (English) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem

On February 26, 2015 at 4:25:17 PM, Josef Karasek ( wrote:
> I'm a student at a university that cooperates with Red Hat and I've been
> offered ticket CAMEL-6070 as subject for thesis project.
> More info:
> I've done some studying and now I'd like to discuss my ideas to get some
> feedback and also ask some questions to sort my thoughts.
> General introduction:
> The goal is to add a new way of configuring tests via annotations.
> I expect that the targeted result is offer both ways of configuration
> simultaneously without major changes to the API, only add
> new feature.
> My thoughts:
> 1) As a good place for starting things I find the setUp() method from
> CamelTestSupport to be the right place.
> 2) It is necessary to find the class that inherits from CamelTestSupport and
> defines test cases. Many libraries manipulating
> bytecode at runtime can help with that
> ( Camel seems to already provide
> some
> reflection functionality in ReflectionHelper. My question here is what can I
> expect from this class? I'm trying to get through it's
> implementation and I don't find it to be much helpful for this purpose. As
> far as I can see it's dependent on Spring. If I'm
> wrong, could anyone point me to the right direciton?
> Otherwise I'd like to use the library mentioned above to retrieve the
> subclass with it's annotations, it's based on javassist and
> has quite liberal license :-).
> Thank you for your time, I'm looking forward to learning a lot from this
> project.
> Josef Karasek
> --
> View this message in context:
> Sent from the Camel Development mailing list archive at

View raw message