/** @return true if the class is RunWithCucumber annotated, false otherwise */ private boolean readRunWithCucumberAnnotation(Class<?> clazz) { RunWithCucumber annotation = clazz.getAnnotation(RunWithCucumber.class); if (annotation != null) { // isEmpty() only available in Android API 9+ packageOfTests = annotation.glue().equals("") ? defaultGlue() : annotation.glue(); features = annotation.features().equals("") ? defaultFeatures() : annotation.features(); return true; } return false; }