
org.j8unit.runners.J8Parameterized Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
The core components of J8Unit, i.e., extended test class model, runner classes, additional assertion methods ...
package org.j8unit.runners;
import org.j8unit.runners.model.J8TestClass;
import org.junit.runners.Parameterized;
/**
*
* Extension of {@link Parameterized} to {@linkplain #createTestClass(Class) support the extended test class model}.
*
* To invoke this custom {@link org.junit.runner.Runner} just use {@link org.junit.runner.RunWith @RunWith}
* annotation; and (!) specify
* {@linkplain org.j8unit.runners.parameterized.J8BlockJUnit4ClassRunnerWithParametersFactory the custom runner factory}
* in addition:
*
*
*
* @RunWith(J8Parameterized.class)
* @UseParametersRunnerFactory(J8BlockJUnit4ClassRunnerWithParametersFactory.class)
* public class FoobarTest {
* […]
* }
*
*
* @see org.junit.runner.RunWith
* @see org.junit.runners.Parameterized.UseParametersRunnerFactory
* @see org.j8unit.runners.parameterized.J8BlockJUnit4ClassRunnerWithParametersFactory
* @see J8TestClass
*
* @since 4.12
*/
public class J8Parameterized
extends Parameterized {
/**
*
* Creates a {@link J8Parameterized} instance to run the tests of the given {@link Class}.
*
*
* @param clazz
* the parameterised test class
* @throws Throwable
* if the parameterised test class is malformed
*/
public J8Parameterized(final Class> clazz)
throws Throwable {
super(clazz);
}
/**
*
* Returns an {@linkplain J8TestClass extended test class model} of the given {@link Class}.
*
*
* @param testClass
* the test class
* @return an {@linkplain J8TestClass extended test class model} of the given {@link Class}
*/
@Override
protected J8TestClass createTestClass(final Class> testClass) {
return new J8TestClass(testClass);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy