So i've been racking my brain on the best approach for testing annotations -- we have annotation support, just no tests. Really, we want to run the entire test suite again on a set of annotated beans with maybe a small deployment descriptor in there to test the overrides too. We could annotate the existing beans, but then we'd never really know for sure anymore if you could deploy an app that wasn't annotated.

Seems the only way to do it is to have two sets of beans, one with annotations and a small descriptor (if any) and another without annotations and a full descriptor (i.e. the beans we have now). Most of the annotated beans could simply be subclasses of the first set of beans.

Going to take a stab at it and see if I can't get something to run or at least keep the tests we have running. If you're hacking on itests, consider this a heads up on potential change.

-David

Reply via email to