Просмотр исходного кода

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

MichaelSpets 9 лет назад
Родитель
Сommit
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
     }