public class

TextListener

extends OrchestrationRunListener
java.lang.Object
   ↳ android.support.test.orchestrator.listeners.OrchestrationRunListener
     ↳ android.support.test.orchestrator.listeners.TextListener

Class Overview

Reimplementation of org.junit.TextListener that accepts AndroidTestOrchestrator compatible objects.

OrchestrationResultPrinter is a near line by line copy of InstrumentationResultPrinter, and since InstrumentationResultPrinter relies on org.junit.internal.TextListener, this class exists for the OrchestrationResultPrinter to rely on, until such time as we can resolve b/35394729 and unify their expertise.

Summary

Public Constructors
TextListener(PrintStream writer)
Public Methods
void testFailure(ParcelableFailure failure)
void testIgnored(ParcelableDescription description)
void testRunFinished(OrchestrationResult result)
void testStarted(ParcelableDescription description)
Protected Methods
String elapsedTimeAsString(long runTime)
Returns the formatted string of the elapsed time.
void printFailure(ParcelableFailure each, String prefix)
void printFailures(OrchestrationResult result)
void printFooter(OrchestrationResult result)
void printHeader(long runTime)
[Expand]
Inherited Methods
From class android.support.test.orchestrator.listeners.OrchestrationRunListener
From class java.lang.Object

Public Constructors

public TextListener (PrintStream writer)

Parameters
writer PrintStream

Public Methods

public void testFailure (ParcelableFailure failure)

Parameters
failure ParcelableFailure

public void testIgnored (ParcelableDescription description)

Parameters
description ParcelableDescription

public void testRunFinished (OrchestrationResult result)

Parameters
result OrchestrationResult

public void testStarted (ParcelableDescription description)

Parameters
description ParcelableDescription

Protected Methods

protected String elapsedTimeAsString (long runTime)

Returns the formatted string of the elapsed time. Duplicated from BaseTestRunner. Fix it.

Parameters
runTime long
Returns
String

protected void printFailure (ParcelableFailure each, String prefix)

Parameters
each ParcelableFailure
prefix String

protected void printFailures (OrchestrationResult result)

Parameters
result OrchestrationResult

protected void printFooter (OrchestrationResult result)

Parameters
result OrchestrationResult

protected void printHeader (long runTime)

Parameters
runTime long