fixed incorect merge that wiped out the semantics of TestExtension.value()

This commit is contained in:
Kohsuke Kawaguchi committed 2011-09-23 21:11:20 -07:00
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);
}