<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Naotsugu</author_name>
  <author_url>https://blog.hatena.ne.jp/Naotsugu/</author_url>
  <blog_title>A Memorandum</blog_title>
  <blog_url>https://blog1.mammb.com/</blog_url>
  <categories>
    <anon>Java</anon>
  </categories>
  <description>前回 blog1.mammb.comに引き続き、Unitils によるモックオブジェクトのサポートを見ていきます。 ダミーオブジェクト モックオブジェクトを使用したテストを書いていると、オブジェクトの準備が面倒な場面があります。 オブジェクトの中身に設定されている値が、テストの実行に当たり重要ではない場面においても、オブジェクトの生成が必要となるためです。Unitils では、このための用途としてダミーオブジェクトの作成をサポートしています。 たとえば以下のような実装で、list の中身自体がテストとして必要ではない場合、 List&lt;Item&gt; list = Arrays.asList(new…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog1.mammb.com%2Fentry%2F20091105%2F1257430915&quot; title=&quot;単体テストを簡単に Unitils 〜モックオブジェクト 3 〜 - A Memorandum&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>2009-11-05 23:21:55</published>
  <title>単体テストを簡単に Unitils 〜モックオブジェクト 3 〜</title>
  <type>rich</type>
  <url>https://blog1.mammb.com/entry/20091105/1257430915</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
