package Ġcom . remember . remember . ui . configuration Ċ Ċ import Ġandroidx . fragment . app . testing . launch Fragment In Container Ċ import Ġcom . remember . remember . R Ċ import Ġcom . remember . repository . Auth Repository Ċ import Ġcom . remember . test . extensions .* Ċ import Ġcom . remember . test . utils . check Intent Ċ import Ġcom . remember . test . utils . mock Intent Ċ import Ġcom . remember . test . utils . mock Response Repository Ċ import Ġio . mock k . verify Ċ import Ġorg . k oin . core . K oin Component Ċ import Ġorg . k oin . core . inject Ċ Ċ fun ĠConfiguration Fragment Test . configuration Fragment ( func : ĠConfiguration Fragment Robot . () Ġ-> ĠUnit ) Ġ= ĊĠĠĠ ĠConfiguration Fragment Robot (). apply ( func ) Ċ Ċ class ĠConfiguration Fragment Robot Ġ: ĠK oin Component Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġauth Repository : ĠAuth Repository Ġby Ġinject () ĊĊĠĠĠ Ġin fix Ġfun Ġlaunch ( func : ĠConfiguration Fragment Robot . () Ġ-> ĠUnit ) Ġ: ĠConfiguration Fragment Robot Ġ{ ĊĠĠĠĠĠĠĠ Ġmock Intent (" LOG O ", Ġtarget Context Ġ= Ġtrue ) ĊĠĠĠĠĠĠĠ Ġmock Response Repository ( auth Repository :: logout ). post Data ( true ) ĊĠĠĠĠĠĠĠ Ġlaunch Fragment In Container < Configuration Fragment >( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġtheme Res Id Ġ= ĠR . style . Remember App Theme _ Primary ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġreturn Ġapply ( func ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġin fix Ġfun Ġcheck ( func : ĠConfiguration Fragment Check . () Ġ-> ĠUnit ) Ġ= ĊĠĠĠĠĠĠĠ ĠConfiguration Fragment Check (). apply ( func ) ĊĊĠĠĠ Ġfun Ġclick Leave Account () Ġ{ ĊĠĠĠĠĠĠĠ ĠR . id . leave _ account _ button . click () ĊĠĠĠ Ġ} Ċ } Ċ Ċ class ĠConfiguration Fragment Check Ġ: ĠK oin Component Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġauth Repository : ĠAuth Repository Ġby Ġinject () ĊĊĠĠĠ Ġfun Ġright Information () Ġ{ ĊĠĠĠĠĠĠĠ ĠR . string . app _ configuration _ title . is Text Displayed ( true ) ĊĠĠĠĠĠĠĠ ĠR . string . app _ config _ notification _ text . is Text Displayed ( true ) ĊĠĠĠĠĠĠĠ ĠR . string . app _ config _ mem ories _ text . is Text Displayed ( true ) ĊĠĠĠĠĠĠĠ ĠR . string . app _ config _ inv ites _ text . is Text Displayed ( true ) ĊĠĠĠĠĠĠĠ ĠR . string . app _ config _ notification _ out _ of _ app _ text . is Text Displayed ( true ) ĊĠĠĠĠĠĠĠ ĠR . string . app _ button _ leave _ text . is Text Displayed ( true ) ĊĠĠĠĠĠĠĠ ĠR . string . app _ button _ delete _ account _ text . is Text Displayed ( true ) ĊĠĠĠĠĠĠĠ ĠR . id . delete _ account _ button . is Disable () ĊĠĠĠĠĠĠĠ ĠR . id . leave _ account _ button . is Enable () ĊĠĠĠĠĠĠĠ ĠR . id . version . is Displayed () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġshould Leave Account () Ġ{ ĊĠĠĠĠĠĠĠ Ġverify Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġauth Repository . logout () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġcheck Intent (" LOG O ", Ġtarget Context Ġ= Ġtrue ) ĊĠĠĠ Ġ} Ċ } Ċ