mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-20 07:22:32 +00:00
bug fix
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@11562 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
e1e740cc27
commit
5c641b933d
1 file changed
+1
-1
@@ -143,7 +143,7 @@ public abstract class HudsonTestCase extends TestCase {
|
||||
// look for recipe meta-annotation
|
||||
Method runMethod= getClass().getMethod(getName());
|
||||
for( final Annotation a : runMethod.getAnnotations() ) {
|
||||
Recipe r = a.getClass().getAnnotation(Recipe.class);
|
||||
Recipe r = a.annotationType().getAnnotation(Recipe.class);
|
||||
if(r==null) continue;
|
||||
final Runner runner = r.value().newInstance();
|
||||
tearDowns.add(new LenientRunnable() {
|
||||
|
||||
Reference in new issue
Block a user