| Package | Description |
|---|---|
| org.helenus.driver.junit |
| Modifier and Type | Method and Description |
|---|---|
StatementCaptureList<T> |
StatementCaptureList.andExpect(org.hamcrest.Matcher<StatementCaptureList<T>> matcher)
Provides an expectation for the statement capture list.
|
StatementCaptureList<T> |
StatementCaptureList.andExpect(StatementCaptureListMatcher<T> matcher)
Provides an expectation for the statement capture list.
|
StatementCaptureList<T> |
StatementCaptureList.dump(Logger logger,
Level level)
Dumps the content of the capture list.
|
StatementCaptureList<T> |
StatementCaptureList.fail(int num,
RuntimeException e)
Registers an interceptor to intercept the next
num executing
statements to throw back the specified error. |
StatementCaptureList<T> |
StatementCaptureList.fail(RuntimeException e)
Registers an interceptor to intercept all executing statement to throw back
the specified error.
|
StatementCaptureList<T> |
StatementCaptureList.intercept(java.util.function.Consumer<T> consumer)
Registers a consumer to intercept all executing statement.
|
StatementCaptureList<T> |
StatementCaptureList.intercept(int num,
java.util.function.Consumer<T> consumer)
Registers a consumer to intercept the next
num executing
statements. |
StatementCaptureList<T> |
StatementCaptureList.stop()
Stops capturing and intercepting statements with this capture list.
|
StatementCaptureList<T> |
StatementCaptureList.stopIntercepting()
Stops all registered interceptors.
|
StatementCaptureList<GenericStatement> |
HelenusJUnit.withCapture()
Starts capturing all object statements that have had their executions
requested with the Helenus statement manager in the order they are occurring
to the returned list.
|
<T extends GenericStatement> |
HelenusJUnit.withCapture(Class<T> clazz)
Starts capturing all statements of the specified class that have had their
executions requested with the Helenus statement manager in the order they
are occurring to the returned list.
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends GenericStatement> |
StatementCaptureListMatchers.isEmpty()
Creates a matcher that matches if the captured list is empty.
|
static <T extends GenericStatement> |
StatementCaptureListMatchers.isNotEmpty()
Creates a matcher that matches if the captured list is not empty.
|
| Modifier and Type | Method and Description |
|---|---|
void |
StatementCaptureListMatcher.match(StatementCaptureList<T> list)
Called to process this matcher against the specified statement capture list.
|
| Modifier and Type | Method and Description |
|---|---|
StatementCaptureList<T> |
StatementCaptureList.andExpect(org.hamcrest.Matcher<StatementCaptureList<T>> matcher)
Provides an expectation for the statement capture list.
|
Copyright (C) 2015-2017 The Helenus Driver Project Authors.