]> source.dussan.org Git - vaadin-framework.git/commitdiff
Make ExcludeFromSuite annotation Runtime and Inherited
authorTeemu Suo-Anttila <teemusa@vaadin.com>
Tue, 11 Mar 2014 16:15:47 +0000 (18:15 +0200)
committerTeemu Suo-Anttila <teemusa@vaadin.com>
Tue, 11 Mar 2014 16:32:50 +0000 (18:32 +0200)
Change-Id: I35169d1560ae5e1b9a057d6350de14947f6155ae

uitest/src/com/vaadin/tests/tb3/ExcludeFromSuite.java
uitest/src/com/vaadin/tests/tb3/TB3TestSuite.java

index 722b643f782b46d467e7018eb9112767ba053af9..52088380287f6514957428052330ea1419f21d76 100644 (file)
  */
 package com.vaadin.tests.tb3;
 
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Inherited;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
 /**
  * Marker interface for a TB3+ test class which will exclude the test from any
  * test suite which automatically scans for test classes. Mostly useful for long
@@ -23,6 +29,9 @@ package com.vaadin.tests.tb3;
  * @since 7.1.10
  * @author Vaadin Ltd
  */
+@Retention(RetentionPolicy.RUNTIME)
+@Target(ElementType.TYPE)
+@Inherited
 public @interface ExcludeFromSuite {
 
 }
index f1576a93937cbba44dbb170b2a6bf3a018d152df..5878e8ab1576cde36579d40ec7c1359caf1e0f4a 100644 (file)
@@ -246,11 +246,7 @@ public class TB3TestSuite extends Suite {
         if (c.getAnnotation(ExcludeFromSuite.class) != null) {
             return false;
         }
-        if (c == Object.class) {
-            return true;
-        }
-
-        return includeInSuite(c.getSuperclass());
+        return true;
     }
 
 }
\ No newline at end of file