/* Ċ Ġ* ĠCopyright Ġ 2 0 2 1 ĠGoogle ĠLLC Ċ Ġ* Ċ Ġ* Ġ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 Ġcom . google . android . fhir . datac apt ure . contrib . views . barcode . ml kit . md . barcode detection Ċ Ċ import Ġandroid . graphics . Canvas Ċ import Ġandroid . graphics . Paint Ċ import Ġcom . google . android . fhir . datac apt ure . contrib . views . barcode . ml kit . md . camera . Camera Ret icle Animator Ċ import Ġcom . google . android . fhir . datac apt ure . contrib . views . barcode . ml kit . md . camera . Graphic Overlay Ċ import Ġorg . mockito . kotlin . any Ċ import Ġorg . mockito . kotlin . eq Ċ import Ġorg . mockito . kotlin . verify Ċ import Ġorg . ro bo lectric . util . Reflection Helpers . getField Ċ Ċ class ĠBar code Ret icle Graphic Test Ġ: ĠBar code Graphic Base Test () Ġ{ ĊĊĠ Ġprivate Ġlateinit Ġvar Ġbarcode Ret icle Graphic : ĠBar code Ret icle Graphic ĊĊĠ Ġoverride Ġfun Ġstart Ver ifications ( canvas : ĠCanvas ) Ġ{ ĊĠĠĠ Ġsuper . start Ver ifications ( canvas ) ĊĊĠĠĠ Ġbarcode Ret icle Graphic . draw ( canvas ) ĊĊĠĠĠ Ġval Ġri pple Paint Ġ= Ġget Field < Paint >( barcode Ret icle Graphic , Ġ" ripple Paint ") ĊĊĠĠĠ Ġverify ( canvas ). draw Round Rect ( any (), Ġeq ( box Corner Radius ), Ġeq ( box Corner Radius ), Ġeq ( ripple Paint )) ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun Ġget Barcode Graphic ( graphic Overlay : ĠGraph ic Overlay ): ĠBar code Graphic Base Ġ{ ĊĠĠĠ Ġbarcode Ret icle Graphic Ġ= ĊĠĠĠĠĠ ĠBar code Ret icle Graphic ( graphic Overlay , ĠCamera Ret icle Animator ( graphic Overlay )) ĊĠĠĠ Ġreturn Ġbarcode Ret icle Graphic ĊĠ Ġ} Ċ } Ċ