package Ġcom . android . breaking bad Ċ Ċ import Ġcom . android . breaking bad . di . App Component Ċ import Ġcom . android . breaking bad . di . module . App Module Ċ import Ġcom . android . breaking bad . di . module . Database Module Ċ import Ġcom . android . breaking bad . di . module . ViewModel Module Ċ import Ġdagger . Component Ċ import Ġokhttp 3 . mock webserver . Mock WebServer Ċ import Ġjavax . inject . Singleton Ċ Ċ @ Singleton Ċ @ Component ( modules Ġ= Ġ[ App Module :: class , ĠDatabase Module :: class , ĠTest Break ing Bad Api Module :: class , ĠViewModel Module :: class ]) Ċ interface ĠTest App Component Ġ: ĠApp Component Ġ{ ĊĠĠĠ Ġfun Ġmock WebServer (): ĠMock WebServer ĊĠĠĠ Ġfun Ġinject ( main Activity Test : ĠMainActivity Test ) Ċ } Ċ