// System.out.println( "\n\nMatcher: " + matcher );
// System.out.println( "Checking: " + description.getClassName()
// + ( parent == null ? "" : "#" + description.getMethodName() ) );
Set<Class<?>> cats = new HashSet<Class<?>>();
Category cat = description.getAnnotation( Category.class );
if ( cat != null )
{
// System.out.println( "Adding categories: " + Arrays.toString(
// cat.value() ) );
cats.addAll( Arrays.asList( cat.value() ) );
}
if ( parent != null )
{
cat = parent.getAnnotation( Category.class );
if ( cat != null )
{
// System.out.println( "Adding class-level categories: " +
// Arrays.toString( cat.value() ) );
cats.addAll( Arrays.asList( cat.value() ) );
}
}
// System.out.println( "Checking " + cats.size() + " categories..."
// );