package Ġde . nic id ien ase . chaos flix Ċ Ċ import Ġandroidx . test . ext . junit . runners . Android JUnit 4 Ċ import Ġandroidx . test . platform . app . Instrumentation Registry Ċ import Ġde . nic id ien ase . chaos flix . common . Ch aos flix Database Ċ import Ġde . nic id ien ase . chaos flix . common . userdata . entities . progress . Playback Progress Ċ import Ġjava . util . Date Ċ import Ġorg . junit . Test Ċ import Ġorg . junit . runner . RunWith Ċ Ċ /** Ċ Ġ* ĠCreated Ġby Ġfel ix Ġon Ġ 3 1 . 1 0 . 1 7 . Ċ Ġ*/ Ċ Ċ @ RunWith ( Android JUnit 4 :: class ) Ċ class ĠPersistence Test Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest 1 () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġcontext Ġ= ĠInstrument ation Registry . get Instrumentation (). context ĊĠĠĠĠĠĠĠ Ġval Ġdummy Guid Ġ= Ġ" as asd lf k js d " ĊĠĠĠĠĠĠĠ Ġval Ġplayback Progress Dao Ġ= ĠCh aos flix Database . getInstance ( context ). playback Progress Dao () ĊĠĠĠĠĠĠĠ Ġval Ġwatch Date Ġ= ĠDate (). time ĊĠĠĠĠĠĠĠ Ġplayback Progress Dao . save Progress ( Playback Progress ( 2 3 , Ġdummy Guid , Ġ 1 3 3 7 , Ġwatch Date )) ĊĠĠĠĠĠĠĠ Ġplayback Progress Dao . get Progress For Event ( dummy Guid ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. observe Fore ver Ġ{ Ġassert ( it ?. id Ġ== Ġ 2 3 L Ġ&& Ġit . progress Ġ== Ġ 1 3 3 7 L ) Ġ} ĊĠĠĠ Ġ} Ċ } Ċ