package Ġorg . so yl ent system . orm lite app Ċ Ċ import Ġandroid . support . test . rule . Activity Test Rule Ċ import Ġandroid . support . test . runner . Android JUnit 4 Ċ import Ġandroid . test . suite builder . annotation . Large Test Ċ import Ġcom . j 2 5 6 . orm lite . dao . Dao Ċ import Ġorg . junit . Rule Ċ import Ġorg . junit . Test Ċ import Ġorg . junit . runner . RunWith Ċ import Ġorg . so yl ent system . So yl ent System Ċ import Ġorg . so yl ent system . orm lite app . nested package . Bar Ċ import Ġkotlin . test . assertEquals Ċ Ċ Large Test ĠRun With ( Android JUnit 4 :: class ) Ġclass ĠSo yl ent System Test Ġ{ ĊĊĠĠĠ Ġval Ġactivity Rule Ġ= ĠActivity Test Rule ( java Class < MainActivity >()) ĊĊĠĠĠ ĠRule Ġpublic Ġfun Ġget Rule (): ĠActivity Test Rule < MainActivity > Ġ= Ġactivity Rule ĊĊĠĠĠ ĠTest Ġfun Ġclean Will Delete All Data Allocated On Package Root () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġdao : ĠDao < Foo , ĠInt > Ġ= Ġactivity Rule . getActivity (). get Helper (). get Dao ( java Class < Foo >()) ĊĠĠĠĠĠĠĠ Ġdao . create ( Foo ( 1 , Ġ" test ")) ĊĠĠĠĠĠĠĠ Ġdao . create ( Foo ( 2 , Ġ" test ")) ĊĠĠĠĠĠĠĠ ĠassertEquals ( 2 L , Ġdao . count Of ()) ĊĊĠĠĠĠĠĠĠ ĠSo yl ent System . clean ( activity Rule . getActivity ()) ĊĠĠĠĠĠĠĠ ĠassertEquals ( 0 L , Ġdao . count Of ()) ĊĠĠĠ Ġ} ĊĊĠĠĠ ĠTest Ġfun Ġclean Will Delete All Data Allocated On Nested Package () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġdao : ĠDao < Bar , ĠInt > Ġ= Ġactivity Rule . getActivity (). get Helper (). get Dao ( java Class < Bar >()) ĊĠĠĠĠĠĠĠ Ġdao . create ( Bar ( 1 , Ġ" test ")) ĊĠĠĠĠĠĠĠ Ġdao . create ( Bar ( 2 , Ġ" test ")) ĊĠĠĠĠĠĠĠ ĠassertEquals ( 2 L , Ġdao . count Of ()) ĊĊĠĠĠĠĠĠĠ ĠSo yl ent System . clean ( activity Rule . getActivity ()) ĊĠĠĠĠĠĠĠ ĠassertEquals ( 0 L , Ġdao . count Of ()) ĊĠĠĠ Ġ} Ċ Ċ } Ċ