package Ġcom . kick starter . view models Ċ Ċ import Ġcom . kick starter . KS Ro bo lectric TestCase Ċ import Ġcom . kick starter . ui . view holders . Rep lies Status Cell Type Ċ import Ġorg . junit . Test Ċ import Ġrx . ob servers . Test Subscriber Ċ Ċ class ĠRep lies Status Cell ViewHolder ViewModel Test Ġ: ĠK S Ro bo lectric TestCase () Ġ{ ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġvm : ĠRep lies Status Cell ViewHolder ViewModel . ViewModel ĊĊĠĠĠ Ġprivate Ġval Ġis View More Rep lies Pagination Visible Ġ= ĠTest Subscriber < Boolean >() ĊĠĠĠ Ġprivate Ġval Ġis Error Pagination Visible Ġ= ĠTest Subscriber < Boolean >() ĊĊĠĠĠ Ġprivate Ġfun Ġsetup Environment () Ġ{ ĊĠĠĠĠĠĠĠ Ġthis . vm Ġ= ĠRep lies Status Cell ViewHolder ViewModel . ViewModel ( environment ()) ĊĠĠĠĠĠĠĠ Ġthis . vm . outputs . is View More Rep lies Pagination Visible (). subscribe ( is View More Rep lies Pagination Visible ) ĊĠĠĠĠĠĠĠ Ġthis . vm . outputs . isError Pagination Visible (). subscribe ( isError Pagination Visible ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġis View More UI Visible () Ġ{ ĊĠĠĠĠĠĠĠ Ġsetup Environment () ĊĊĠĠĠĠĠĠĠ Ġthis . vm . inputs . configure With ( Rep lies Status Cell Type . VIEW _ MORE ) ĊĠĠĠĠĠĠĠ Ġthis . is View More Rep lies Pagination Visible . assert Value ( true ) ĊĠĠĠĠĠĠĠ Ġthis . isError Pagination Visible . assert Value ( false ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġis Error Pagination Visible () Ġ{ ĊĠĠĠĠĠĠĠ Ġsetup Environment () ĊĊĠĠĠĠĠĠĠ Ġthis . vm . inputs . configure With ( Rep lies Status Cell Type . P AG INATION _ ERROR ) ĊĠĠĠĠĠĠĠ Ġthis . is View More Rep lies Pagination Visible . assert Value ( false ) ĊĠĠĠĠĠĠĠ Ġthis . isError Pagination Visible . assert Value ( true ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun ĠisEmpty State () Ġ{ ĊĠĠĠĠĠĠĠ Ġsetup Environment () ĊĊĠĠĠĠĠĠĠ Ġthis . vm . inputs . configure With ( Rep lies Status Cell Type . EM TP Y ) ĊĠĠĠĠĠĠĠ Ġthis . is View More Rep lies Pagination Visible . assert Value ( false ) ĊĠĠĠĠĠĠĠ Ġthis . isError Pagination Visible . assert Value ( false ) ĊĠĠĠ Ġ} Ċ } Ċ