{"blog_title":"tomute's note","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","blog_url":"https://tomute.hateblo.jp/","width":"100%","image_url":null,"author_url":"https://blog.hatena.ne.jp/tomute/","type":"rich","author_name":"tomute","url":"https://tomute.hateblo.jp/entry/20140304/1393942845","published":"2014-03-04 23:20:45","version":"1.0","categories":["JAVA"],"title":" Mockito\u306eArgumentMatcher\u306e\u4f7f\u3044\u65b9","height":"190","description":"http://docs.mockito.googlecode.com/hg/latest/org/mockito/ArgumentMatcher.html\u3092\u898b\u308b\u3068\u3001\u3053\u306e\u30af\u30e9\u30b9\u3092\u4f7f\u3063\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3001IsListOfTwoElements\u30af\u30e9\u30b9\u306e\u3088\u3046\u306a\u72ec\u81ea\u306eArgument Matcher\u3092\u4f5c\u308b\u4e8b\u304c\u51fa\u6765\u308b\u3002 class IsListOfTwoElements extends ArgumentMatcher<List> { public boolean matches(Object list) { return ((List) list).size() == 2; } } List mock = m\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftomute.hateblo.jp%2Fentry%2F20140304%2F1393942845\" title=\" Mockito\u306eArgumentMatcher\u306e\u4f7f\u3044\u65b9 - tomute&#39;s note\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}