public class TransactionalFeature extends SimpleFeature
Modifier and Type | Class and Description |
---|---|
class |
TransactionalFeature.TransactionalDeployer
Handler used to commit transaction before next action and start a new one after next action if
TransactionalConfig.autoStart() is true. |
static interface |
TransactionalFeature.Waiter |
Modifier and Type | Field and Description |
---|---|
protected TransactionalConfig |
config |
protected boolean |
txStarted |
protected List<TransactionalFeature.Waiter> |
waiters |
Constructor and Description |
---|
TransactionalFeature() |
Modifier and Type | Method and Description |
---|---|
void |
addWaiter(TransactionalFeature.Waiter waiter) |
void |
afterTeardown(FeaturesRunner runner)
After the call of the @After methods
|
void |
beforeSetup(FeaturesRunner runner)
Before entering in the @Before methods
|
protected void |
commitOrRollbackTransactionAfter() |
void |
initialize(FeaturesRunner runner)
Called when preparing to run the test class.
|
void |
nextTransaction() |
void |
nextTransaction(long duration,
TimeUnit unit) |
protected void |
startTransactionBefore() |
afterMethodRun, afterRun, beforeMethodRun, beforeRun, configure, start, stop, testCreated
protected TransactionalConfig config
protected boolean txStarted
protected final List<TransactionalFeature.Waiter> waiters
public TransactionalFeature()
public void addWaiter(TransactionalFeature.Waiter waiter)
public void nextTransaction()
public void nextTransaction(long duration, TimeUnit unit)
public void initialize(FeaturesRunner runner) throws Exception
RunnerFeature
initialize
in interface RunnerFeature
initialize
in class SimpleFeature
Exception
public void beforeSetup(FeaturesRunner runner) throws Exception
RunnerFeature
beforeSetup
in interface RunnerFeature
beforeSetup
in class SimpleFeature
Exception
public void afterTeardown(FeaturesRunner runner) throws Exception
RunnerFeature
afterTeardown
in interface RunnerFeature
afterTeardown
in class SimpleFeature
Exception
protected void startTransactionBefore()
protected void commitOrRollbackTransactionAfter()
Copyright © 2018 Nuxeo. All rights reserved.