File tree Expand file tree Collapse file tree
exercises/rna-transcription Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- 1.0.1
1+ 1.1.0
Original file line number Diff line number Diff line change 11import org .junit .Before ;
22import org .junit .Ignore ;
3- import org .junit .Rule ;
43import org .junit .Test ;
5- import org .junit .rules .ExpectedException ;
64
75import static org .junit .Assert .assertEquals ;
86
97public class RnaTranscriptionTest {
108
11- @ Rule
12- public ExpectedException expectedException = ExpectedException .none ();
13-
149 private RnaTranscription rnaTranscription ;
1510
1611 @ Before
@@ -47,28 +42,4 @@ public void testRnaTranscription() {
4742 assertEquals ("UGCACCAGAAUU" , rnaTranscription .transcribe ("ACGTGGTCTTAA" ));
4843 }
4944
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-
7445}
You can’t perform that action at this time.
0 commit comments