All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.junit.experimental.runners.Enclosed Maven / Gradle / Ivy

Go to download

JUnit is a regression testing framework written by Erich Gamma and Kent Beck. It is used by the developer who implements unit tests in Java.

There is a newer version: 4.11
Show newest version
package org.junit.experimental.runners;

import org.junit.runners.Suite;
import org.junit.runners.model.RunnerBuilder;


/**
 * If you put tests in inner classes, Ant, for example, won't find them. By running the outer class
 * with Enclosed, the tests in the inner classes will be run. You might put tests in inner classes
 * to group them for convenience or to share constants.
 * 
 *  So, for example:
 *  
 *  \@RunWith(Enclosed.class)
 *  public class ListTests {
 *  	...useful shared stuff...
 *  	public static class OneKindOfListTest {...}
 *  	public static class AnotherKind {...}
 *  }
 *  
* * For a real example, @see org.junit.tests.manipulation.SortableTest. */ public class Enclosed extends Suite { /** * Only called reflectively. Do not use programmatically. */ public Enclosed(Class klass, RunnerBuilder builder) throws Throwable { super(builder, klass, klass.getClasses()); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy