public class StubAggregateLifecycleRule extends StubAggregateLifecycle implements org.junit.rules.TestRule
Rule
annotated method or field
in a test class. In that case, the JUnit lifecycle will automatically register and unregister the
StubAggregateLifecycle.
Usage example:
@Rule public StubAggregateLifecycleRule lifecycle = new StubAggregateLifecycleRule(); @Test public void testMethod() { ... perform tests ... // get applied events from lifecycle to validate some more lifecycle.getAppliedEvents(); }
Constructor and Description |
---|
StubAggregateLifecycleRule() |
Modifier and Type | Method and Description |
---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
activate, close, doApply, doCreateNew, doMarkDeleted, getAppliedEventPayloads, getAppliedEvents, getIsLive, identifier, isMarkedDeleted, type, version
apply, apply, createNew, describeScope, execute, getInstance, getVersion, isLive, markDeleted, registerWithUnitOfWork
describeCurrentScope, endScope, executeWithResult, getCurrentScope, startScope
Copyright © 2010–2018. All rights reserved.