I'm working on getting the other changes into this changeset that filter
the classes.

I'll take a look at CategoriesFilter again, but the first time I looked at
it, I didn't see a way to make it so what I wanted.
On Feb 16, 2013 8:42 AM, "Kevin Cooney" <notifications@github.com> wrote:

> In src/main/java/org/junit/filters/CategoriesFilter.java:
>
> > @@ -0,0 +1,28 @@
> > +package org.junit.filters;
> > +
> > +import org.junit.experimental.categories.Category;
> > +import org.junit.runner.Description;
> > +import org.junit.runner.manipulation.Filter;
> > +
> > +abstract class CategoriesFilter extends Filter {
> > +    public static final String DEFAULT = "";
> > +
> > +    @Override
> > +    public boolean shouldRun(final Description description) {
> > +        if (description.getMethodName() == null) {
> > +            if (description.getChildren().isEmpty()) {
> > +                final Category classCategory = description.getAnnotation(Category.class);
>
> On the surface, it looks like this code only considers the Categoryannotations on the test methods, not the test classes.
>
> Can we somehow reuse Categories.CategoriesFilter?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/junit-team/junit/pull/635/files#r3039689>.
>
>