{"blog_title":"\u304b\u305a\u304d\u306eBlog@hatena","version":"1.0","url":"https://okazuki.hatenablog.com/entry/20060901/1157100507","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fokazuki.hatenablog.com%2Fentry%2F20060901%2F1157100507\" title=\"EasyMock2.0\u3092\u304a\u8a66\u3057 with JUnit4 - \u304b\u305a\u304d\u306eBlog@hatena\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2006-09-01 17:48:27","author_url":"https://blog.hatena.ne.jp/okazuki/","author_name":"okazuki","provider_url":"https://hatena.blog","image_url":null,"width":"100%","provider_name":"Hatena Blog","height":"190","title":"EasyMock2.0\u3092\u304a\u8a66\u3057 with JUnit4","blog_url":"https://okazuki.hatenablog.com/","description":"\u30c6\u30b9\u30c8\u5bfe\u8c61\u306e\u30ed\u30b8\u30c3\u30af\u30af\u30e9\u30b9 package easymock; public class PersonLogic { private PersonDao personDao; /** * \u6307\u5b9a\u3055\u308c\u305fID\u306e\u4eba\u306eBMI\u5024\u3092\u8fd4\u3057\u307e\u3059\u3002 * \u6307\u5b9a\u3055\u308c\u305f\u4eba\u304c\u3044\u306a\u3044\u5834\u5408\u306f\u3001null\u3092\u8fd4\u3057\u307e\u3059\u3002 */ public Double calcBMI(Integer id) { Person person = personDao.get(id); if (person == null) { return null; } return person.getWeight() / (person.getHeight()\u2026","categories":["Java"]}