/* Ċ Ġ* ĠBack pack Ġ- ĠSky scanner 's ĠDesign ĠSystem Ċ Ġ* Ċ Ġ* ĠCopyright Ġ 2 0 1 6 - 2 0 2 0 ĠSky scanner ĠLtd Ċ Ġ* Ċ Ġ* ĠLicensed Ġunder Ġthe ĠApache ĠLicense , ĠVersion Ġ 2 . 0 Ġ( the Ġ" License "); Ċ Ġ* Ġyou Ġmay Ġnot Ġuse Ġthis Ġfile Ġexcept Ġin Ġcompliance Ġwith Ġthe ĠLicense . Ċ Ġ* ĠYou Ġmay Ġobtain Ġa Ġcopy Ġof Ġthe ĠLicense Ġat Ċ Ġ* Ċ Ġ* Ġhttp :// www . apache . org / licenses / LICENSE - 2 . 0 Ċ Ġ* Ċ Ġ* ĠUnless Ġrequired Ġby Ġapplicable Ġlaw Ġor Ġagreed Ġto Ġin Ġwriting , Ġsoftware Ċ Ġ* Ġdistributed Ġunder Ġthe ĠLicense Ġis Ġdistributed Ġon Ġan Ġ" AS ĠIS " ĠBASIS , Ċ Ġ* ĠWITHOUT ĠWARRANTIES ĠOR ĠCONDITIONS ĠOF ĠANY ĠKIND , Ġeither Ġexpress Ġor Ġimplied . Ċ Ġ* ĠSee Ġthe ĠLicense Ġfor Ġthe Ġspecific Ġlanguage Ġgoverning Ġpermissions Ġand Ċ Ġ* Ġlimitations Ġunder Ġthe ĠLicense . Ċ Ġ*/ Ċ package Ġnet . sky scanner . back pack . react native . flare Ċ Ċ import Ġandroid . widget . Frame Layout Ċ import Ġandroidx . test . ext . junit . runners . Android JUnit 4 Ċ import Ġcom . facebook . react . u im an ager . The med React Context Ċ import Ġnet . sky scanner . back pack . react native . testing . React View Manager Test Rule Ċ import Ġorg . hamcrest . Matchers .` is ` Ċ import Ġorg . hamcrest . Matchers . instance Of Ċ import Ġorg . junit . Assert . assertEquals Ċ import Ġorg . junit . Assert . assertThat Ċ import Ġorg . junit . Rule Ċ import Ġorg . junit . Test Ċ import Ġorg . junit . runner . RunWith Ċ Ċ @ RunWith ( Android JUnit 4 :: class ) Ċ class ĠB pk Fl are View Manager Test Ġ{ ĊĊĠ Ġ@ get : Rule ĊĠ Ġval Ġmanager Rule Ġ= ĠReact View Manager Test Rule ( B pk Fl are View Manager :: class ) ĊĠ Ġprivate Ġval Ġmanager : ĠB pk Fl are View Manager ĊĠĠĠ Ġget () Ġ= Ġmanager Rule . manager ĊĊĠ Ġprivate Ġval Ġthe med Context : ĠThe med React Context ĊĠĠĠ Ġget () Ġ= Ġmanager Rule . the med Context ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest _ create _ view _ instance () Ġ{ ĊĠĠĠ Ġval Ġview Ġ= Ġmanager . create View Instance ( the med Context ) ĊĠĠĠ ĠassertThat ( view , Ġ` is `( instance Of ( R NB pk Fl are :: class . java ))) ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest _ export _ view _ name () Ġ{ ĊĠĠĠ ĠassertEquals (" Android B PK Fl are View ", Ġmanager . name ) ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest _ does _ not _ throw _ if _ more _ than _ one _ children _ is _ added () Ġ{ ĊĠĠĠ Ġval Ġview Ġ= Ġmanager . create View Instance ( the med Context ) ĊĠĠĠ Ġmanager . addView ( view , ĠFrame Layout ( manager Rule . context ), Ġ 0 ) ĊĠĠĠ Ġmanager . addView ( view , ĠFrame Layout ( manager Rule . context ), Ġ 1 ) ĊĠ Ġ} Ċ } Ċ