I like challenges :):) On Fri, Apr 16, 2010 at 10:09 PM, John Tamplin <[email protected]> wrote:
> On Fri, Apr 16, 2010 at 3:45 PM, Marko Vuksanovic < > [email protected]> wrote: > >> I just noticed that there is HasAnnotations interface... I might try >> putting that to use... >> >> On Apr 16, 9:38 pm, Marko Vuksanovic <[email protected]> >> wrote: >> > Well I've been looking at the existing code and I have seen that >> > JClassType implements getMethods(). Then I would be able to check if a >> > method has Annotation applied - using isAnnotationPresent() method. >> > >> > I am not sure how to check if a method has an annotation applied and >> > not to use the refelection package. The problem is that that package >> > cannot be used in translatable code. Obviously I'm missing something >> > here... >> > > You probably want to look at GWTRunnerGenerator, which generates the > implementation of GWTRunner to actually run it (and has access to > TypeOracle), or JUnitShell, which actually drives running the tests and can > use reflection to look at the annotations (though be careful about different > classloaders). > > That said, I suspect supporting JUnit4 is likely to be a lot of work. > > -- > John A. Tamplin > Software Engineer (GWT), Google > > -- > http://groups.google.com/group/Google-Web-Toolkit-Contributors > -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
