{"published":"2018-12-27 16:06:12","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fandrohi.hatenablog.com%2Fentry%2F2018%2F12%2F27%2F160612\" title=\"MockK\u3092\u4f7f\u3063\u305fViewModel\u306e\u30c6\u30b9\u30c8 - EDIT MODE\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","provider_url":"https://hatena.blog","description":"\u6982\u8981 \u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3001\u30b7\u30f3\u30d7\u30eb\u306aViewModel\u306e\u30c6\u30b9\u30c8\u3092Mockito\u3092\u4f7f\u3063\u3066\u66f8\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u3053\u308c\u3092MockK\u3067\u66f8\u304d\u63db\u3048\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002 Mockito\u3092\u4f7f\u3063\u305fViewModel\u306e\u30c6\u30b9\u30c8 @RunWith(RobolectrictTestRunner::class) class UserViewModelTest { @Mock private lateinit var mockRepository: MyRepository @Mock private lateinit var observer: Observer<List<UserPoint>> private lateinit va\u2026","title":"MockK\u3092\u4f7f\u3063\u305fViewModel\u306e\u30c6\u30b9\u30c8","image_url":null,"blog_title":"EDIT MODE","author_name":"androhi","width":"100%","url":"https://androhi.hatenablog.com/entry/2018/12/27/160612","author_url":"https://blog.hatena.ne.jp/androhi/","blog_url":"https://androhi.hatenablog.com/","provider_name":"Hatena Blog","categories":["Android","AAC","ArchitectureComponents","MockK"],"version":"1.0","type":"rich"}