<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>jyukutyo</author_name>
  <author_url>https://blog.hatena.ne.jp/jyukutyo/</author_url>
  <blog_title>Fight the Future</blog_title>
  <blog_url>https://www.sakatakoichi.com/</blog_url>
  <categories>
    <anon>TestNG</anon>
  </categories>
  <description>テストにおいては、正しく例外が発生するかもテストする必要がある。 JUnit3の時代は、僕の周りではそのテストの書き方を理解している人が少なかった印象がある。 JUnit3では例外発生テストはこのように書くものだった。 import junit.framework.TestCase; public class TestCaseSample extends TestCase { public void testExpectedException() { Sample s = new Sample(); try { s.throwException(); fail(&quot;Exception is no…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.sakatakoichi.com%2Fentry%2F20080813%2F1218610616&quot; title=&quot;例外発生テストメソッドに見るテスティングフレームワークの進化 - Fight the Future&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>2008-08-14 07:56:56</published>
  <title>例外発生テストメソッドに見るテスティングフレームワークの進化</title>
  <type>rich</type>
  <url>https://www.sakatakoichi.com/entry/20080813/1218610616</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
