<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hepokon365</author_name>
  <author_url>https://blog.hatena.ne.jp/hepokon365/</author_url>
  <blog_title>毎日へっぽこ</blog_title>
  <blog_url>https://hepokon365.hatenablog.com/</blog_url>
  <categories>
    <anon>Spock</anon>
    <anon>Groovy</anon>
    <anon>JUnit</anon>
  </categories>
  <description>Spock + Mockitoでユニットテストを書いているときに、finalなクラスをモック化したくなったので、PowerMockを導入。 JUnit 4で使う時と同様、 @RunWith(PowerMockRunner) しただけでは実行時にエラーがでてしまったので、SpockでPowerMockを使う方法をメモ。 環境 Spock 1.3-groovy-2.5、Mockito 3.3.3、PowerMock 2.0.9。 PowerMockは powermock-module-junit4 と powermock-api-mockito2 を利用。 問題 finalなクラスをモック化したい…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhepokon365.hatenablog.com%2Fentry%2F2021%2F06%2F20%2F001947&quot; title=&quot;Spock v1.3でPowerMockを使う - 毎日へっぽこ&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>2021-06-20 00:19:47</published>
  <title>Spock v1.3でPowerMockを使う</title>
  <type>rich</type>
  <url>https://hepokon365.hatenablog.com/entry/2021/06/20/001947</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
