during incremental compilation, the index can get out of sync

This commit is contained in:
Kohsuke Kawaguchi committed 2011-11-07 14:00:15 -08:00
1 parent 44c699aba9
commit a3489b5bc9
1 file changed
+3 -1
@@ -55,7 +55,9 @@ public class TestExtensionLoader extends AbstractGuiceFinder<TestExtension> {
protected boolean isActive(AnnotatedElement e) {
TestEnvironment env = TestEnvironment.get();
String testName = e.getAnnotation(TestExtension.class).value();
TestExtension a = e.getAnnotation(TestExtension.class);
if (a==null) return false; // stale index
String testName = a.value();
if (testName.length()>0 && !env.testCase.getName().equals(testName))
return false; // doesn't apply to this test