public class GrinderRunnerTest {
private static final Logger LOGGER = LoggerFactory.getLogger(GrinderRunnerTest.class);
@Test
public void testThreadInitialization() throws Throwable {
GrinderRunner runner = new GrinderRunner(TestSample.class);
LOGGER.debug("start the test function...");
runner.run(new RunNotifier() {
@Override
public void fireTestFailure(Failure failure) {
throw new RuntimeException(failure.getException());
}
});