mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 13:32:24 +00:00
fixed incorect merge that wiped out the semantics of TestExtension.value()
This commit is contained in:
1 parent
ecc6989c0a
commit
76ada98f34
1 file changed
+4
@@ -55,6 +55,10 @@ public class TestExtensionLoader extends AbstractGuiceFinder<TestExtension> {
|
||||
protected boolean isActive(AnnotatedElement e) {
|
||||
TestEnvironment env = TestEnvironment.get();
|
||||
|
||||
String testName = e.getAnnotation(TestExtension.class).value();
|
||||
if (testName.length()>0 && !env.testCase.getName().equals(testName))
|
||||
return false; // doesn't apply to this test
|
||||
|
||||
if (e instanceof Class) {
|
||||
return isActive(env, (Class)e);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user