WebAssertion


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 constructors

Public functions

ViewAssertion!
toViewAssertion(result: E!)

Protected functions

abstract Unit
checkResult(view: WebView!, result: E!)

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

Public properties

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

Public constructors

WebAssertion

@RemoteMsgConstructor
WebAssertion(atom: Atom<E!>!)

Public functions

toViewAssertion

fun toViewAssertion(result: E!): ViewAssertion!

Protected functions

checkResult

protected abstract fun checkResult(view: WebView!, result: E!): Unit

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

Parameters
view: WebView!

the WebView that the Atom was evaluated on.

result: E!

the result of atom evaluation.

Public properties

atom

@RemoteMsgField(order = 0)
val atomAtom<E!>!