<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shurabaP</author_name>
  <author_url>https://blog.hatena.ne.jp/shurabaP/</author_url>
  <blog_title>フェルマータ</blog_title>
  <blog_url>https://shurabap.hatenablog.jp/</blog_url>
  <categories>
    <anon>Scala</anon>
    <anon>Specs2</anon>
    <anon>Mockito</anon>
    <anon>テスト</anon>
  </categories>
  <description>経緯 Scala でモックを使用したテストコードを書くときにに Mockito を使っている。Mockitoは大変便利で、 Specs2 で使う場合は以下のように簡単にメソッドの動作を定義できる。 val mockedHoge = mock[Hoge] val bar: Argument = new Argument() val result: Result = new Result() mockedHoge.foo(bar) returns result // Write a test with mockedHoge there was one(mockedHoge).foo(bar) これ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshurabap.hatenablog.jp%2Fentry%2F2014%2F05%2F02%2F012030&quot; title=&quot;Specs2 の Mockito でデフォルト引数つきのメソッドの動作定義がメソッドの呼び出し回数にカウントされる。 - フェルマータ&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>2014-05-02 01:20:30</published>
  <title>Specs2 の Mockito でデフォルト引数つきのメソッドの動作定義がメソッドの呼び出し回数にカウントされる。</title>
  <type>rich</type>
  <url>https://shurabap.hatenablog.jp/entry/2014/05/02/012030</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
