{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
public final class OrchestrationListenerManager
Container class for all orchestration listeners
Nested types |
|
|---|---|
OrchestrationListenerManager.TestEvent |
Message types sent from the remote instrumentation |
Public constructors |
|
|---|---|
OrchestrationListenerManager(@NonNull Instrumentation instrumentation) |
|
Public methods |
|
|---|---|
@NonNull void |
addListener(@NonNull OrchestrationRunListener listener) |
@NonNull void |
handleNotification(@NonNull Bundle bundle)Takes a test message and parses it out for all the listeners. |
@NonNull void |
orchestrationRunStarted(@NonNull int testCount)To be called after test collection, before the first test begins. |
@NonNull void |
testProcessFinished(@NonNull String outputFile)To be called when the test process terminates, with the result from standard out. |
@NonNull void |
testProcessStarted(@NonNull ParcelableDescription description)To be called when the test process begins |
public OrchestrationListenerManager(@NonNull Instrumentation instrumentation)
@NonNull
public void handleNotification(@NonNull Bundle bundle)
Takes a test message and parses it out for all the listeners.
| Parameters | |
|---|---|
@NonNull Bundle bundle |
A bundle containing a key describing the type of message, and a bundle with the appropriate parcelable imitation of aJ Unit object. |
@NonNull
public void orchestrationRunStarted(@NonNull int testCount)
To be called after test collection, before the first test begins.
@NonNull
public void testProcessFinished(@NonNull String outputFile)
To be called when the test process terminates, with the result from standard out.
@NonNull
public void testProcessStarted(@NonNull ParcelableDescription description)
To be called when the test process begins