import Ġorg . gradle . api . artifacts . Dependency Ċ import Ġorg . gradle . api . artifacts . dsl . Dependency Handler Ċ Ċ object ĠTest Libraries Ġ{ ĊĠĠĠ Ġprivate Ġobject ĠVersions Ġ{ ĊĠĠĠĠĠĠĠ Ġconst Ġval Ġjunit 4 Ġ= Ġ" 4 . 1 3 " ĊĠĠĠĠĠĠĠ Ġconst Ġval Ġtest Runner Ġ= Ġ" 1 . 1 . 1 " ĊĠĠĠĠĠĠĠ Ġconst Ġval Ġes press o Ġ= Ġ" 3 . 2 . 0 " ĊĠĠĠĠĠĠĠ Ġconst Ġval Ġmock k Ġ= Ġ" 1 . 9 . 3 " ĊĠĠĠĠĠĠĠ Ġconst Ġval Ġmock ito Kotlin Ġ= Ġ" 2 . 2 . 0 " ĊĠĠĠĠĠĠĠ Ġconst Ġval Ġkt Coroutine Core Ġ= Ġ" 1 . 3 . 2 " ĊĠĠĠĠĠĠĠ Ġconst Ġval Ġk lu ent Ġ= Ġ" 1 . 5 6 " ĊĠĠĠĠĠĠĠ Ġconst Ġval Ġsql de light Ġ= Ġ" 1 . 2 . 0 " ĊĠĠĠĠĠĠĠ Ġconst Ġval Ġroom Ġ= Ġ" 2 . 2 . 5 " ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġconst Ġval Ġjunit 4 Ġ= Ġ" junit : junit :${ Versions . junit 4 }" ĊĠĠĠ Ġconst Ġval Ġtest Runner Ġ= Ġ" android x . test . ext : junit :${ Versions . test Runner }" ĊĠĠĠ Ġconst Ġval Ġes press o Ġ= Ġ" android x . test . espress o : espress o - core :${ Versions . espress o }" ĊĠĠĠ Ġconst Ġval Ġmock k Ġ= Ġ" io . mock k : mock k :${ Versions . mock k }" ĊĠĠĠ Ġconst Ġval Ġmock k Android Ġ= Ġ" io . mock k : mock k - android :${ Versions . mock k }" ĊĠĠĠ Ġconst Ġval Ġkotlin Coroutine Test Ġ= Ġ" org . jetbrains . kotlin x : kotlin x - coroutines - test :${ Versions . kt Coroutine Core }" ĊĠĠĠ Ġ// ĠShould Ġbe Ġchanged Ġto Ġmock k ĊĠĠĠ Ġconst Ġval Ġmock ito Kotlin Ġ= Ġ" com . n ha ar man . mock it ok otlin 2 : mockito - kotlin :${ Versions . mockito Kotlin }" ĊĠĠĠ Ġconst Ġval Ġk lu ent Ġ= Ġ" org . am sh ove . k lu ent : k lu ent - android :${ Versions . k lu ent }" ĊĠĠĠ Ġconst Ġval Ġsql de light Ġ= Ġ" com . squareup . sql de light : sqlite - driver :${ Versions . sql de light }" ĊĠĠĠ Ġconst Ġval Ġroom Ġ= Ġ" android x . room : room - testing :${ Versions . room }" Ċ } Ċ Ċ fun ĠDependency Handler . add Test Dependencies () Ġ{ ĊĠĠĠ Ġtest Implementation ( Test Libraries . junit 4 ) ĊĠĠĠ Ġtest Implementation ( Test Libraries . mockito Kotlin ) ĊĠĠĠ Ġtest Implementation ( Test Libraries . mock k ) ĊĠĠĠ Ġtest Implementation ( Test Libraries . kotlin Coroutine Test ) ĊĠĠĠ Ġtest Implementation ( Test Libraries . k lu ent ) ĊĠĠĠ Ġandroid Test Implementation ( Test Libraries . test Runner ) ĊĠĠĠ Ġandroid Test Implementation ( Test Libraries . espress o ) ĊĠĠĠ Ġandroid Test Implementation ( Test Libraries . mock k Android ) ĊĠĠĠ Ġandroid Test Implementation ( Test Libraries . room ) Ċ } Ċ Ċ fun ĠDependency Handler . add Test Feature Dependencies () Ġ{ ĊĠĠĠ Ġtest Implementation ( Test Libraries . sql de light ) Ċ } Ċ Ċ private Ġfun ĠDependency Handler . test Implementation ( dependency Not ation : ĠAny ): ĠDependency ? Ġ= ĊĠĠĠ Ġadd (" test Implementation ", Ġdependency Not ation ) Ċ Ċ private Ġfun ĠDependency Handler . android Test Implementation ( dependency Not ation : ĠAny ): ĠDependency ? Ġ= ĊĠĠĠ Ġadd (" android Test Implementation ", Ġdependency Not ation ) Ċ