NoMatchingViewException.Builder

public static class NoMatchingViewException.Builder
extends Object

java.lang.Object
   ↳ androidx.test.espresso.NoMatchingViewException.Builder


Builder for NoMatchingViewException.

Summary

Public constructors

Builder()

Public methods

NoMatchingViewException build()
NoMatchingViewException.Builder from(NoMatchingViewException exception)
NoMatchingViewException.Builder includeViewHierarchy(boolean includeViewHierarchy)
NoMatchingViewException.Builder withAdapterViewWarning(EspressoOptional<String> adapterViewWarning)
NoMatchingViewException.Builder withAdapterViews(List<View> adapterViews)
NoMatchingViewException.Builder withCause(Throwable cause)
NoMatchingViewException.Builder withRootView(View rootView)
NoMatchingViewException.Builder withViewMatcher(Matcher<? super View> viewMatcher)

Inherited methods

Public constructors

Builder

public Builder ()

Public methods

build

public NoMatchingViewException build ()

Returns
NoMatchingViewException

from

public NoMatchingViewException.Builder from (NoMatchingViewException exception)

Parameters
exception NoMatchingViewException

Returns
NoMatchingViewException.Builder

includeViewHierarchy

public NoMatchingViewException.Builder includeViewHierarchy (boolean includeViewHierarchy)

Parameters
includeViewHierarchy boolean

Returns
NoMatchingViewException.Builder

withAdapterViewWarning

public NoMatchingViewException.Builder withAdapterViewWarning (EspressoOptional<String> adapterViewWarning)

Parameters
adapterViewWarning EspressoOptional

Returns
NoMatchingViewException.Builder

withAdapterViews

public NoMatchingViewException.Builder withAdapterViews (List<View> adapterViews)

Parameters
adapterViews List

Returns
NoMatchingViewException.Builder

withCause

public NoMatchingViewException.Builder withCause (Throwable cause)

Parameters
cause Throwable

Returns
NoMatchingViewException.Builder

withRootView

public NoMatchingViewException.Builder withRootView (View rootView)

Parameters
rootView View

Returns
NoMatchingViewException.Builder

withViewMatcher

public NoMatchingViewException.Builder withViewMatcher (Matcher<? super View> viewMatcher)

Parameters
viewMatcher Matcher

Returns
NoMatchingViewException.Builder