<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>androhi</author_name>
  <author_url>https://blog.hatena.ne.jp/androhi/</author_url>
  <blog_title>EDIT MODE</blog_title>
  <blog_url>https://androhi.hatenablog.com/</blog_url>
  <categories>
    <anon>Android</anon>
    <anon>AAC</anon>
    <anon>ArchitectureComponents</anon>
    <anon>MockK</anon>
  </categories>
  <description>概要 以下のような、シンプルなViewModelのテストをMockitoを使って書いたのですが、これをMockKで書き換えることにしました。 Mockitoを使ったViewModelのテスト @RunWith(RobolectrictTestRunner::class) class UserViewModelTest { @Mock private lateinit var mockRepository: MyRepository @Mock private lateinit var observer: Observer&lt;List&lt;UserPoint&gt;&gt; private lateinit va…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fandrohi.hatenablog.com%2Fentry%2F2018%2F12%2F27%2F160612&quot; title=&quot;MockKを使ったViewModelのテスト - EDIT MODE&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-12-27 16:06:12</published>
  <title>MockKを使ったViewModelのテスト</title>
  <type>rich</type>
  <url>https://androhi.hatenablog.com/entry/2018/12/27/160612</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
