Sfoglia il codice sorgente

Merge pull request #1214 from FridaTveit/RnaTranscriptionUpdate

rna-transcription: update tests to version 1.1.0
Sam Warner 8 anni fa
parent
commit
ee6e73fb7b
No account linked to committer's email

+ 1
- 1
exercises/rna-transcription/.meta/version Vedi File

1
-1.0.1
1
+1.1.0

+ 0
- 29
exercises/rna-transcription/src/test/java/RnaTranscriptionTest.java Vedi File

1
 import org.junit.Before;
1
 import org.junit.Before;
2
 import org.junit.Ignore;
2
 import org.junit.Ignore;
3
-import org.junit.Rule;
4
 import org.junit.Test;
3
 import org.junit.Test;
5
-import org.junit.rules.ExpectedException;
6
 
4
 
7
 import static org.junit.Assert.assertEquals;
5
 import static org.junit.Assert.assertEquals;
8
 
6
 
9
 public class RnaTranscriptionTest {
7
 public class RnaTranscriptionTest {
10
 
8
 
11
-    @Rule
12
-    public ExpectedException expectedException = ExpectedException.none();
13
-
14
     private RnaTranscription rnaTranscription;
9
     private RnaTranscription rnaTranscription;
15
 
10
 
16
     @Before
11
     @Before
47
         assertEquals("UGCACCAGAAUU", rnaTranscription.transcribe("ACGTGGTCTTAA"));
42
         assertEquals("UGCACCAGAAUU", rnaTranscription.transcribe("ACGTGGTCTTAA"));
48
     }
43
     }
49
 
44
 
50
-    @Ignore("Remove to run test")
51
-    @Test
52
-    public void testRnaTranscriptionOfRnaThrowsAnError() {
53
-        expectedException.expect(IllegalArgumentException.class);
54
-        expectedException.expectMessage("Invalid input");
55
-        rnaTranscription.transcribe("U");
56
-    }
57
-
58
-    @Ignore("Remove to run test")
59
-    @Test
60
-    public void testRnaTranscriptionOfInvalidInputThrowsAnError() {
61
-        expectedException.expect(IllegalArgumentException.class);
62
-        expectedException.expectMessage("Invalid input");
63
-        rnaTranscription.transcribe("XXX");
64
-    }
65
-
66
-    @Ignore("Remove to run test")
67
-    @Test
68
-    public void testRnaTranscriptionOfPartiallyInvalidInput() {
69
-        expectedException.expect(IllegalArgumentException.class);
70
-        expectedException.expectMessage("Invalid input");
71
-        rnaTranscription.transcribe("ACGTXXXCTTAA");
72
-    }
73
-
74
 }
45
 }