@ SuppressWarnings ( "unchecked" ) public static boolean isRunnable ( Class cl , Method method , List < FilterDefinition > filters ) { // Get the ROX annotations ProbeTest mAnnotation = method . getAnnotation ( ProbeTest . class ) ; ProbeTestClass cAnnotation = method . getDeclaringClass ( ) . getAnnotation ( ProbeTestClass . class ) ; String fingerprint = FingerprintGenerator . fingerprint ( cl , method ) ; if ( mAnnotation != null || cAnnotation != null ) { return isRunnable ( new FilterTargetData ( fingerprint , method , mAnnotation , cAnnotation ) , filters ) ; } else { return isRunnable ( new FilterTargetData ( fingerprint , method ) , filters ) ; } }
Define if a test is runnable or not based on a method and class