<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hironei</author_name>
  <author_url>https://blog.hatena.ne.jp/hironei/</author_url>
  <blog_title>hironei's diary</blog_title>
  <blog_url>https://hironei.hatenablog.com/</blog_url>
  <categories>
    <anon>JAVA</anon>
  </categories>
  <description>を見てMockitoを使ってみました。感想・・・今までの時間返して・・・ってぐらい単体テストを書くのが簡略化されました。ちょっと前にdjUnitを使ってモックを作って、テスト書いて、リファクタリングして、テストコード直してみたいなことをしていたんですが、 djUnitだと addReturnValue(&quot;HelloWorld&quot;, &quot;getMessage&quot;, &quot;こんにちわ。&quot;); みたいにクラスとメソッドを文字列でしていするので、どうしてもリファクタリングに弱い面がありました。これがMockitoだと SimpleClass m = mock(SimpleClass.class); when(m…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhironei.hatenablog.com%2Fentry%2F20110805%2F1312538160&quot; title=&quot;MockitoとQuickJunitの組み合わせ - hironei&amp;#39;s diary&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>2011-08-05 18:56:00</published>
  <title>MockitoとQuickJunitの組み合わせ</title>
  <type>rich</type>
  <url>https://hironei.hatenablog.com/entry/20110805/1312538160</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
