package Ġcom . github . tm ur ak ami . mockito 4 k Ċ Ċ import Ġorg . mockito . Mock Settings Ċ import Ġorg . mockito . Mockito Ċ import Ġkotlin . reflect . K Class Ċ Ċ /** Ċ Ġ* ĠThe Ġdeleg ation Ġto Ġ[ Mockito . mock ]. Ċ Ġ*/ Ċ inline Ġfun Ġ< re ified ĠT Ġ: ĠAny > Ġmock (): ĠT Ġ= ĠMockito . mock ( T :: class . java ) Ċ Ċ /** Ċ Ġ* ĠThe Ġdeleg ation Ġto Ġ[ Mockito . mock ]. Ċ Ġ*/ Ċ inline Ġfun Ġ< re ified ĠT Ġ: ĠAny > Ġmock ( cross inline Ġsettings : ĠMock Settings . () Ġ-> ĠUnit ): ĠT Ġ= ĊĠĠĠ ĠMockito . mock ( T :: class . java , ĠMockito . with Settings (). apply Ġ{ Ġsettings () Ġ}) Ċ Ċ /** Ċ Ġ* ĠThe Ġdeleg ation Ġto Ġ[ Mockito . spy ]. Ċ Ġ*/ Ċ inline Ġfun Ġ< re ified ĠT Ġ: ĠAny > Ġspy (): ĠT Ġ= ĠMockito . spy ( T :: class . java ) Ċ Ċ /** Ċ Ġ* ĠThe Ġdeleg ation Ġto Ġ[ Mockito . spy ]. Ċ Ġ*/ Ċ inline Ġfun Ġ< re ified ĠT Ġ: ĠAny > Ġspy ( instance : ĠT ): ĠT Ġ= ĠMockito . spy ( instance ) Ċ Ċ /** Ċ Ġ* ĠThe Ġdeleg ation Ġto Ġ[ Mock Settings . extra Interfaces ]. Ċ Ġ*/ Ċ @ Suppress (" NOTH ING _ TO _ INLINE ") Ċ inline Ġfun ĠMock Settings . extra Interfaces ( var arg Ġinterfaces : ĠK Class < *> ): ĠMock Settings Ġ= ĊĠĠĠ Ġextra Interfaces (* interfaces . map Ġ{ Ġit . java Ġ}. to Typed Array ()) Ċ