瀏覽代碼

hamming: remove signature for unchecked exceptions [Fix #304]

MichaelSpets 9 年之前
父節點
當前提交
b3f33dd4db
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      exercises/hamming/src/test/java/HammingTest.java

+ 2
- 2
exercises/hamming/src/test/java/HammingTest.java 查看文件

43
 
43
 
44
     @Ignore
44
     @Ignore
45
     @Test
45
     @Test
46
-    public void testValidatesFirstStrandNotLonger() throws IllegalArgumentException {
46
+    public void testValidatesFirstStrandNotLonger() {
47
         thrown.expect(IllegalArgumentException.class);
47
         thrown.expect(IllegalArgumentException.class);
48
         Hamming.compute("AAAG", "AAA");                
48
         Hamming.compute("AAAG", "AAA");                
49
     }
49
     }
50
 
50
 
51
     @Ignore
51
     @Ignore
52
     @Test
52
     @Test
53
-    public void testValidatesOtherStrandNotLonger() throws IllegalArgumentException {
53
+    public void testValidatesOtherStrandNotLonger() {
54
         thrown.expect(IllegalArgumentException.class);
54
         thrown.expect(IllegalArgumentException.class);
55
         Hamming.compute("AAA", "AAAG");
55
         Hamming.compute("AAA", "AAAG");
56
     }
56
     }