OrchestrationListenerManager


public final class OrchestrationListenerManager


Container class for all orchestration listeners

Summary

Nested types

Message types sent from the remote instrumentation

Constants

static final String
KEY_TEST_EVENT = "TestEvent"

Public constructors

Public methods

void
void

Takes a test message and parses it out for all the listeners.

void
orchestrationRunStarted(int testCount)

To be called after test collection, before the first test begins.

void

To be called when the test process terminates, with the result from standard out.

void

To be called when the test process begins

Constants

KEY_TEST_EVENT

public static final String KEY_TEST_EVENT = "TestEvent"

Public constructors

OrchestrationListenerManager

public OrchestrationListenerManager(Instrumentation instrumentation)

Public methods

addListener

public void addListener(OrchestrationRunListener listener)

handleNotification

public void handleNotification(Bundle bundle)

Takes a test message and parses it out for all the listeners.

Parameters
Bundle bundle

A bundle containing a key describing the type of message, and a bundle with the appropriate parcelable imitation of aJ Unit object.

orchestrationRunStarted

public void orchestrationRunStarted(int testCount)

To be called after test collection, before the first test begins.

testProcessFinished

public void testProcessFinished(String outputFile)

To be called when the test process terminates, with the result from standard out.

testProcessStarted

public void testProcessStarted(ParcelableDescription description)

To be called when the test process begins