Search in sources :

Example 1 with Theories

use of org.junit.experimental.theories.Theories in project junit4 by junit-team.

the class TheoryTestUtils method runTheoryClass.

public static Result runTheoryClass(Class<?> testClass) throws InitializationError {
    Runner theoryRunner = new Theories(testClass);
    Request request = Request.runner(theoryRunner);
    return new JUnitCore().run(request);
}
Also used : Runner(org.junit.runner.Runner) JUnitCore(org.junit.runner.JUnitCore) Theories(org.junit.experimental.theories.Theories) Request(org.junit.runner.Request)

Aggregations

Theories (org.junit.experimental.theories.Theories)1 JUnitCore (org.junit.runner.JUnitCore)1 Request (org.junit.runner.Request)1 Runner (org.junit.runner.Runner)1