package Ġorg . b spb . smart bir ds . pro . tools . robot Ċ Ċ import Ġandroid . widget . Button Ċ import Ġandroidx . annotation . String Res Ċ import Ġandroidx . test . espress o . Esp ress o . on View Ċ import Ġandroidx . test . espress o . View Interaction Ċ import Ġandroidx . test . espress o . assertion . View Assertions Ċ import Ġandroidx . test . espress o . matcher . View Matchers Ċ import Ġorg . b spb . smart bir ds . pro . R Ċ import Ġorg . b spb . smart bir ds . pro . tools . toolbar With Title Ċ import Ġorg . b spb . smart bir ds . pro . tools . with Hint Parent Or Own Ċ import Ġorg . hamcrest . Matchers Ċ Ċ @ Test Robot Marker Ċ private Ġinterface ĠTh re ats Form Robot Ċ Ċ class ĠTh re ats Form Test Robot Ġ: ĠTh re ats Form Robot Ġ{ ĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġfun Ġth re ats Screen ( block : ĠTh re ats Form Test Robot . () Ġ-> ĠUnit ): ĠTh re ats Form Test Robot Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġreturn ĠTh re ats Form Test Robot (). apply ( block ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġis Displayed (): ĠView Interaction Ġ= ĊĠĠĠĠĠĠĠ Ġtoolbar With Title ( R . string . entry _ type _ th re ats ). check ( View Assertions . matches ( View Matchers . is Displayed ())) ĊĊĠĠĠ Ġfun Ġbutton Save (): ĠView Interaction Ġ= ĊĠĠĠĠĠĠĠ Ġon View ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠMatch ers . all Of ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠMatch ers . instance Of ( Button :: class . java ), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠView Matchers . with Text ( R . string . menu _ entry _ save ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġ) ĊĊĠĠĠ Ġfun Ġtab Main (): ĠView Interaction Ġ= Ġon View ( View Matchers . with Text ( R . string . tab _ required )) ĊĊĠĠĠ Ġfun Ġtab Optional (): ĠView Interaction Ġ= ĊĠĠĠĠĠĠĠ Ġon View ( View Matchers . with Text ( R . string . tab _ optional )) ĊĊĠĠĠ Ġfun Ġfield Mod erator Review (): ĠView Interaction Ġ= ĊĠĠĠĠĠĠĠ Ġon View ( View Matchers . with Text ( R . string . monitoring _ mod erator _ review )) ĊĊĠĠĠ Ġfun Ġfield Conf idential (): ĠView Interaction Ġ= ĊĠĠĠĠĠĠĠ Ġon View ( View Matchers . with Text ( R . string . monitoring _ bir ds _ private )) ĊĊĠĠĠ Ġfun Ġfield Th reat Type Po ison (@ String Res Ġtype Res Id : ĠInt ): ĠView Interaction Ġ= ĊĠĠĠĠĠĠĠ Ġon View ( View Matchers . with Text ( type Res Id )) ĊĊĠĠĠ Ġfun Ġfield Category (): ĠView Interaction Ġ= ĊĠĠĠĠĠĠĠ Ġon View ( with Hint Parent Or Own ( R . string . monitoring _ th re ats _ category )) ĊĊĠĠĠ Ġfun Ġfield Class (): ĠView Interaction Ġ= ĊĠĠĠĠĠĠĠ Ġon View ( with Hint Parent Or Own ( R . string . monitoring _ th re ats _ class )) ĊĊĠĠĠ Ġfun Ġfield Species (): ĠView Interaction Ġ= ĊĠĠĠĠĠĠĠ Ġon View ( with Hint Parent Or Own ( R . string . monitoring _ th re ats _ species )) ĊĊĠĠĠ Ġfun Ġfield Count (): ĠView Interaction Ġ= ĊĠĠĠĠĠĠĠ Ġon View ( with Hint Parent Or Own ( R . string . monitoring _ th re ats _ count )) ĊĊĠĠĠ Ġfun Ġfield Estimate (): ĠView Interaction Ġ= ĊĠĠĠĠĠĠĠ Ġon View ( with Hint Parent Or Own ( R . string . monitoring _ th re ats _ estimate )) ĊĊĠĠĠ Ġfun Ġfield Po ison ing (@ String Res Ġtype Res Id : ĠInt ): ĠView Interaction Ġ= ĊĠĠĠĠĠĠĠ Ġon View ( View Matchers . with Text ( type Res Id )) ĊĊĠĠĠ Ġfun Ġfield State Car c ass (): ĠView Interaction Ġ= ĊĠĠĠĠĠĠĠ Ġon View ( with Hint Parent Or Own ( R . string . monitoring _ th re ats _ state _ car c ass )) ĊĊĠĠĠ Ġfun Ġfield Sample Taken 1 (): ĠView Interaction Ġ= ĊĠĠĠĠĠĠĠ Ġon View ( with Hint Parent Or Own ( R . string . monitoring _ th re ats _ sample _ taken _ 1 )) ĊĊĠĠĠ Ġfun Ġfield Sample Taken 2 (): ĠView Interaction Ġ= ĊĠĠĠĠĠĠĠ Ġon View ( with Hint Parent Or Own ( R . string . monitoring _ th re ats _ sample _ taken _ 2 )) ĊĊĠĠĠ Ġfun Ġfield Sample Taken 3 (): ĠView Interaction Ġ= ĊĠĠĠĠĠĠĠ Ġon View ( with Hint Parent Or Own ( R . string . monitoring _ th re ats _ sample _ taken _ 3 )) ĊĊĠĠĠ Ġfun Ġfield Sample Code 1 (): ĠView Interaction Ġ= ĊĠĠĠĠĠĠĠ Ġon View ( with Hint Parent Or Own ( R . string . monitoring _ th re ats _ sample _ code _ 1 )) ĊĊĠĠĠ Ġfun Ġfield Sample Code 2 (): ĠView Interaction Ġ= ĊĠĠĠĠĠĠĠ Ġon View ( with Hint Parent Or Own ( R . string . monitoring _ th re ats _ sample _ code _ 2 )) ĊĊĠĠĠ Ġfun Ġfield Sample Code 3 (): ĠView Interaction Ġ= ĊĠĠĠĠĠĠĠ Ġon View ( with Hint Parent Or Own ( R . string . monitoring _ th re ats _ sample _ code _ 3 )) ĊĊĠĠĠ Ġfun Ġfield Notes (): ĠView Interaction Ġ= ĊĠĠĠĠĠĠĠ Ġon View ( with Hint Parent Or Own ( R . string . monitoring _ th re ats _ notes )) Ċ Ċ }