org.fluentlenium.adapter.junit.jupiter.FluentTest Maven / Gradle / Ivy
Show all versions of fluentlenium-junit-jupiter Show documentation
package org.fluentlenium.adapter.junit.jupiter;
import org.fluentlenium.utils.SeleniumVersionChecker;
import org.fluentlenium.adapter.FluentTestRunnerAdapter;
import org.junit.jupiter.api.extension.ExtendWith;
/**
* JUnit 5 FluentLenium Test Runner Adapter.
*
* Extends this class to provide FluentLenium support to your JUnit Test class.
*/
@SuppressWarnings("PMD.MethodNamingConventions")
@ExtendWith({FluentJUnitJupiter.class, MockitoExtension.class})
public class FluentTest extends FluentTestRunnerAdapter {
// JUnitJupiter support, called from FluentJUnitJupiter
/*package*/ void _starting(Class> testClass, String testName) {
SeleniumVersionChecker.checkSeleniumVersion();
starting(testClass, testName);
}
/*package*/ void _finished(Class> testClass, String testName) {
finished(testClass, testName);
}
/*package*/ void _failed(Throwable e, Class> testClass, String testName) {
failed(e, testClass, testName);
finished(testClass, testName);
}
}