Package org.fluentlenium.adapter.junit
Class FluentTestRule
- java.lang.Object
-
- org.fluentlenium.adapter.junit.FluentTestRule
-
- All Implemented Interfaces:
org.junit.rules.TestRule
public class FluentTestRule extends java.lang.Object implements org.junit.rules.TestRuleEquivalent ofTestWatcher, but stop process if exception occurs on starting method call.It also supports
Afterannotations.
-
-
Constructor Summary
Constructors Constructor Description FluentTestRule(java.lang.Object target)Creates a new fluent test rule.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.junit.runners.model.Statementapply(org.junit.runners.model.Statement base, org.junit.runner.Description description)protected voidfailed(java.lang.Throwable e, org.junit.runner.Description description)Invoked when a test failsprotected voidfinished(org.junit.runner.Description description)Invoked when a test method finishes (whether passing or failing)protected voidstarting(org.junit.runner.Description description)Invoked when a test is about to startprotected voidsucceeded(org.junit.runner.Description description)Invoked when a test succeeds.
-
-
-
Method Detail
-
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)- Specified by:
applyin interfaceorg.junit.rules.TestRule
-
succeeded
protected void succeeded(org.junit.runner.Description description)
Invoked when a test succeeds.- Parameters:
description- test description
-
failed
protected void failed(java.lang.Throwable e, org.junit.runner.Description description)Invoked when a test fails- Parameters:
e- exceptiondescription- test description
-
starting
protected void starting(org.junit.runner.Description description)
Invoked when a test is about to start- Parameters:
description- test description
-
finished
protected void finished(org.junit.runner.Description description)
Invoked when a test method finishes (whether passing or failing)- Parameters:
description- test description
-
-