<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>CORDEA</author_name>
  <author_url>https://blog.hatena.ne.jp/CORDEA/</author_url>
  <blog_title>CORDEA blog</blog_title>
  <blog_url>https://cordea.hatenadiary.com/</blog_url>
  <categories>
    <anon>Android</anon>
    <anon>Kotlin</anon>
  </categories>
  <description>あんまり知られてないような知られてるような、そんな感じがしたので Robolectric の Shadow の使い道をちょっと紹介します。robolectric.org紹介するのは static method を呼び出ている kotlin の object 宣言がされた singleton を内部で直接使用している 内部で new している などなど、色々な記事で PowerMock の出番とされていそうなケースについてです。今回はこれを Robolectric の Shadow で解決します。 前提として、私は PowerMock を入れようと思った時、それは設計を見直しをするべき時だと考え…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcordea.hatenadiary.com%2Fentry%2F2019%2F03%2F24%2F125922&quot; title=&quot;static method 等を呼び出しているテストケースで Robolectric の Shadow を使う - CORDEA blog&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>2019-03-24 12:59:22</published>
  <title>static method 等を呼び出しているテストケースで Robolectric の Shadow を使う</title>
  <type>rich</type>
  <url>https://cordea.hatenadiary.com/entry/2019/03/24/125922</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
