import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.*;

import org.junit.Test;
import org.junit.Ignore;

public class HammingTest {
    

    @Test
    public void testNoDifferenceBetweenIdenticalStrands() {
        assertThat(Hamming.compute("A", "A"), is(0));
    }

    @Ignore
    @Test
    public void testCompleteHammingDistanceOfForSingleNucleotideStrand() {
        assertThat(Hamming.compute("A", "G"), is(1));
    }

    @Ignore
    @Test
    public void testCompleteHammingDistanceForSmallStrand() {
        assertThat(Hamming.compute("AG", "CT"), is(2)); 
    }

    @Ignore
    @Test
    public void testSmallHammingDistance() {
        assertThat(Hamming.compute("AT", "CT"), is(1));
    }

    @Ignore
    @Test
    public void testSmallHammingDistanceInLongerStrand() {
        assertThat(Hamming.compute("GGACG", "GGTCG"), is(1));
    }

    @Ignore
    @Test(expected = IllegalArgumentException.class)
    public void testValidatesFirstStrandNotLonger() {
        Hamming.compute("AAAG", "AAA");
    }

    @Ignore
    @Test(expected = IllegalArgumentException.class)
    public void testValidatesOtherStrandNotLonger() {
        Hamming.compute("AAA", "AAAG");
    }

    @Ignore
    @Test
    public void testLargeHammingDistance() {
        assertThat(Hamming.compute("GATACA", "GCATAA"), is(4));
    }

    @Ignore
    @Test
    public void testHammingDistanceInVeryLongStrand() {
        assertThat(Hamming.compute("GGACGGATTCTG", "AGGACGGATTCT"), is(9));
    }

}

@@ -123,41 +123,185 @@
 re;%0A
-%0Apublic class HammingTest %7B%0A    %0A
+import org.junit.Rule;%0Aimport org.junit.rules.ExpectedException;%0A%0Apublic class HammingTest %7B%0A    %0A%0A    @Rule%0A    public ExpectedException thrown = ExpectedException.none();%0A    
 %0A   
@@ -1039,51 +1039,8 @@
 Test
-(expected = IllegalArgumentException.class)
 %0A   
@@ -1082,32 +1082,87 @@
 ndNotLonger() %7B%0A
+        thrown.expect(IllegalArgumentException.class);%0A
         Hamming.
@@ -1184,16 +1184,32 @@
  %22AAA%22);
+                
 %0A    %7D%0A%0A
@@ -1233,51 +1233,8 @@
 Test
-(expected = IllegalArgumentException.class)
 %0A   
@@ -1276,32 +1276,87 @@
 ndNotLonger() %7B%0A
+        thrown.expect(IllegalArgumentException.class);%0A
         Hamming.

Change @Test expected parameter to @Rule ExpectedException in hamming