public class


extends Suite
   ↳ org.junit.runner.Runner
     ↳ org.junit.runners.ParentRunner<T>
       ↳ org.junit.runners.Suite
         ↳ org.junit.experimental.categories.Categories

Class Overview

From a given set of test classes, runs only the classes and methods that are annotated with either the category given with the @IncludeCategory annotation, or a subtype of that category. Note that, for now, annotating suites with @Category has no effect. Categories must be annotated on the direct method or class. Example:

 public interface FastTests {
 public interface SlowTests {
 public static class A {
 	public void a() {
 	public void b() {
 @Category( { SlowTests.class, FastTests.class })
 public static class B {
 	public void c() {
 @SuiteClasses( { A.class, B.class })
 // Note that Categories is a kind of Suite
 public static class SlowTestSuite {


Nested Classes
class Categories.CategoryFilter  
@interface Categories.ExcludeCategory  
@interface Categories.IncludeCategory  
Public Constructors
Categories(Class<?> klass, RunnerBuilder builder)
Inherited Methods
From class org.junit.runners.Suite
From class org.junit.runners.ParentRunner
From class org.junit.runner.Runner
From class java.lang.Object
From interface org.junit.runner.Describable
From interface org.junit.runner.manipulation.Filterable
From interface org.junit.runner.manipulation.Sortable

Public Constructors

public Categories (Class<?> klass, RunnerBuilder builder)