public class FluentTestRule
extends java.lang.Object
implements org.junit.rules.TestRule
TestWatcher, but stop process if exception occurs on
starting method call.
It also supports After annotations.
| Constructor and Description |
|---|
FluentTestRule(java.lang.Object target)
Creates a new fluent test rule.
|
| Modifier and Type | Method and Description |
|---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
protected void |
failed(java.lang.Throwable e,
org.junit.runner.Description description)
Invoked when a test fails
|
protected void |
finished(org.junit.runner.Description description)
Invoked when a test method finishes (whether passing or failing)
|
protected void |
starting(org.junit.runner.Description description)
Invoked when a test is about to start
|
protected void |
succeeded(org.junit.runner.Description description)
Invoked when a test succeeds.
|
public FluentTestRule(java.lang.Object target)
target - target of the rule.public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
apply in interface org.junit.rules.TestRuleprotected void succeeded(org.junit.runner.Description description)
description - test descriptionprotected void failed(java.lang.Throwable e,
org.junit.runner.Description description)
e - exceptiondescription - test descriptionprotected void starting(org.junit.runner.Description description)
description - test descriptionprotected void finished(org.junit.runner.Description description)
description - test descriptionCopyright © 2018 FluentLenium. All Rights Reserved.