junitでexceptionが発生した事の確認テストはどのようにすれば良いかメモしておきます。
exceptionの発生確認は@Test内に「(expected = [確認したいExceptionクラス])」を指定する事で簡単に確認する事が出来ます。
JUnitサンプル
| 
					 1 2 3 4 5 6 7 8 9  | 
							@Test(expected = IndexOutOfBoundsException.class) 	public void testIndexOutOfBoundsException() { 		// 準備 		List<String> test = new ArrayList<String>(); 		test.add("abc"); 		// 実行 		test.get(1); 	}  | 
					
