protected String getCategory ( RoxableTestClass classAnnotation , RoxableTest methodAnnotation ) { if ( methodAnnotation != null && methodAnnotation . category ( ) != null && ! methodAnnotation . category ( ) . isEmpty ( ) ) { return methodAnnotation . category ( ) ; } else if ( classAnnotation != null && classAnnotation . category ( ) != null && ! classAnnotation . category ( ) . isEmpty ( ) ) { return classAnnotation . category ( ) ; } else if ( configuration . getCategory ( ) != null && ! configuration . getCategory ( ) . isEmpty ( ) ) { return configuration . getCategory ( ) ; } else if ( category != null ) { return category ; } else { return DEFAULT_CATEGORY ; } }
Retrieve the category to apply to the test