public final class TestFlow


Represents a gallery of the test output metadata. e.g. the screens visited, and actions performed, in an Espresso test.

Summary

Public constructors

Public methods

final void

Adds a ScreenData object to the graph.

final void

Adds a ScreenData object to the graph with existing ActionData.

final ActionData
getEdge(int index)

Gets the ActionData that has a certain index.

final ScreenData
final int
final ScreenData
final void

Resets each ScreenData object.

final void
final void

Public constructors

TestFlow

public TestFlow()

Public methods

addScreen

public final void addScreen(@NonNull ScreenData screen)

Adds a ScreenData object to the graph.

addScreen

public final void addScreen(@NonNull ScreenData screen, @NonNull ActionData action)

Adds a ScreenData object to the graph with existing ActionData.

getEdge

public final ActionData getEdge(int index)

Gets the ActionData that has a certain index. Null if not found.

getHead

public final ScreenData getHead()

getSize

public final int getSize()

getTail

public final ScreenData getTail()

resetTraversal

public final void resetTraversal()

Resets each ScreenData object.

setHead

public final void setHead(ScreenData head)

setTail

public final void setTail(ScreenData tail)