<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tbpg</author_name>
  <author_url>https://blog.hatena.ne.jp/tbpg/</author_url>
  <blog_title>Tbpgr Blog</blog_title>
  <blog_url>https://tbpgr.hatenablog.com/</blog_url>
  <categories>
    <anon>Java</anon>
  </categories>
  <description>概要 mockitoで単体テストをMockする 詳細 mockitoで単体テストをMockします。 業務ではdjUnitしか使って居なかったのですが、djUnitのMock機能は メソッドを文字列で指定するためリファクタリング対象外になる、という欠点があります。メソッドのリファクタリングなどはよく行う機会が多く、 特にユーティリティ系の用に大量に利用されるコードをモック指定た場合に リファクタリングの工数がかなり膨らんでしまいます。 導入手順 ・下記URLからjarをダウンロード https://code.google.com/p/mockito/downloads/list ・対象プロジェク…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftbpgr.hatenablog.com%2Fentry%2F20130506%2F1367849586&quot; title=&quot;Java | mockitoで単体テストをMockする - Tbpgr 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>2013-05-06 23:13:06</published>
  <title>Java | mockitoで単体テストをMockする</title>
  <type>rich</type>
  <url>https://tbpgr.hatenablog.com/entry/20130506/1367849586</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
