package Ġcom . ark iv an ov . mv ik otlin . extensions . android x . lifecycle Ċ Ċ import Ġandroidx . lifecycle . Lifecycle Owner Ċ import Ġcom . ark iv an ov . mv ik otlin . extensions . android x . lifecycle . Test Lifecycle Callbacks . Event . ON _ CREATE Ċ import Ġcom . ark iv an ov . mv ik otlin . extensions . android x . lifecycle . Test Lifecycle Callbacks . Event . ON _ DESTROY Ċ import Ġcom . ark iv an ov . mv ik otlin . extensions . android x . lifecycle . Test Lifecycle Callbacks . Event . ON _ PAUSE Ċ import Ġcom . ark iv an ov . mv ik otlin . extensions . android x . lifecycle . Test Lifecycle Callbacks . Event . ON _ RE SU ME Ċ import Ġcom . ark iv an ov . mv ik otlin . extensions . android x . lifecycle . Test Lifecycle Callbacks . Event . ON _ START Ċ import Ġcom . ark iv an ov . mv ik otlin . extensions . android x . lifecycle . Test Lifecycle Callbacks . Event . ON _ STOP Ċ import Ġorg . junit . Test Ċ Ċ class ĠAndroid Lifecycle Adapter Test Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġandroid Lifecycle Ġ= ĠTest Android Lifecycle () ĊĠĠĠ Ġprivate Ġval Ġlifecycle Ġ= ĠAndroid Lifecycle Adapter ( android Lifecycle ) ĊĠĠĠ Ġprivate Ġval Ġcallbacks Ġ= ĠTest Lifecycle Callbacks () ĊĠĠĠ Ġprivate Ġval Ġowner Ġ= ĠLifecycle Owner Ġ{ Ġandroid Lifecycle Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġcalls _ callbacks () Ġ{ ĊĠĠĠĠĠĠĠ Ġlifecycle . subscribe ( callbacks ) ĊĠĠĠĠĠĠĠ Ġandroid Lifecycle . onCreate ( owner ) ĊĠĠĠĠĠĠĠ Ġandroid Lifecycle . onStart ( owner ) ĊĠĠĠĠĠĠĠ Ġandroid Lifecycle . on Resume ( owner ) ĊĠĠĠĠĠĠĠ Ġandroid Lifecycle . on Pause ( owner ) ĊĠĠĠĠĠĠĠ Ġandroid Lifecycle . on Stop ( owner ) ĊĠĠĠĠĠĠĠ Ġandroid Lifecycle . on Destroy ( owner ) ĊĊĠĠĠĠĠĠĠ Ġcallbacks . assert Events ( ON _ CREATE , ĠON _ START , ĠON _ RE SU ME , ĠON _ PAUSE , ĠON _ STOP , ĠON _ DESTROY ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġdoes _ not _ call _ un subscribed _ callbacks () Ġ{ ĊĠĠĠĠĠĠĠ Ġlifecycle . subscribe ( callbacks ) ĊĠĠĠĠĠĠĠ Ġlifecycle . unsubscribe ( callbacks ) ĊĠĠĠĠĠĠĠ Ġandroid Lifecycle . onCreate ( owner ) ĊĠĠĠĠĠĠĠ Ġandroid Lifecycle . onStart ( owner ) ĊĠĠĠĠĠĠĠ Ġandroid Lifecycle . on Resume ( owner ) ĊĠĠĠĠĠĠĠ Ġandroid Lifecycle . on Pause ( owner ) ĊĠĠĠĠĠĠĠ Ġandroid Lifecycle . on Stop ( owner ) ĊĠĠĠĠĠĠĠ Ġandroid Lifecycle . on Destroy ( owner ) ĊĊĠĠĠĠĠĠĠ Ġcallbacks . assert No Events () ĊĠĠĠ Ġ} Ċ } Ċ