WebAssertion


public abstract class WebAssertion<E>


Similar to a ViewAssertion, a WebAssertion allows users to check the results of an atom evaluated against the provided WebView.

Parameters
<E>

The type the specific Atom returns.

Summary

Public fields

final Atom<E>
@RemoteMsgField(order = 0)
atom

Public constructors

Public methods

final Atom<E>
final ViewAssertion
toViewAssertion(E result)

Protected methods

abstract void
checkResult(WebView view, E result)

Extension point to validate a view and atom result on the main thread.

Public fields

atom

@RemoteMsgField(order = 0)
public final Atom<E> atom

Public constructors

WebAssertion

@RemoteMsgConstructor
public WebAssertion(Atom<E> atom)

Public methods

getAtom

public final Atom<E> getAtom()

toViewAssertion

public final ViewAssertion toViewAssertion(E result)

Protected methods

checkResult

protected abstract void checkResult(WebView view, E result)

Extension point to validate a view and atom result on the main thread.

Parameters
WebView view

the WebView that the Atom was evaluated on.

E result

the result of atom evaluation.