{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

TextListener

public class TextListener


Reimplementation of org.junit.TextListener that accepts 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

Public methods

@NonNull void
testFailure(@NonNull ParcelableFailure failure)
@NonNull void
testIgnored(@NonNull ParcelableDescription description)
@NonNull void
@NonNull void
testStarted(@NonNull ParcelableDescription description)

Public constructors

TextListener

public TextListener(@NonNull PrintStream writer)

Public methods

testFailure

@NonNull
public void testFailure(@NonNull ParcelableFailure failure)

testIgnored

@NonNull
public void testIgnored(@NonNull ParcelableDescription description)

testRunFinished

@NonNull
public void testRunFinished(@NonNull OrchestrationResult result)

testStarted

@NonNull
public void testStarted(@NonNull ParcelableDescription description)