2
2
import org .junit .Ignore ;
3
3
import org .junit .Test ;
4
4
5
- import static org .junit . Assert . assertEquals ;
5
+ import static org .assertj . core . api . Assertions . assertThat ;
6
6
7
7
public class RnaTranscriptionTest {
8
8
@@ -15,37 +15,36 @@ public void setUp() {
15
15
16
16
@ Test
17
17
public void testEmptyRnaSequence () {
18
- assertEquals ( "" , rnaTranscription .transcribe ("" ));
18
+ assertThat ( rnaTranscription .transcribe ("" )). isEmpty ( );
19
19
}
20
20
21
21
@ Ignore ("Remove to run test" )
22
22
@ Test
23
23
public void testRnaTranscriptionOfCytosineIsGuanine () {
24
- assertEquals ( "G" , rnaTranscription .transcribe ("C" ));
24
+ assertThat ( rnaTranscription .transcribe ("C" )). isEqualTo ( "G" );
25
25
}
26
26
27
27
@ Ignore ("Remove to run test" )
28
28
@ Test
29
29
public void testRnaTranscriptionOfGuanineIsCytosine () {
30
- assertEquals ( "C" , rnaTranscription .transcribe ("G" ));
30
+ assertThat ( rnaTranscription .transcribe ("G" )). isEqualTo ( "C" );
31
31
}
32
32
33
33
@ Ignore ("Remove to run test" )
34
34
@ Test
35
35
public void testRnaTranscriptionOfThymineIsAdenine () {
36
- assertEquals ( "A" , rnaTranscription .transcribe ("T" ));
36
+ assertThat ( rnaTranscription .transcribe ("T" )). isEqualTo ( "A" );
37
37
}
38
38
39
39
@ Ignore ("Remove to run test" )
40
40
@ Test
41
41
public void testRnaTranscriptionOfAdenineIsUracil () {
42
- assertEquals ( "U" , rnaTranscription .transcribe ("A" ));
42
+ assertThat ( rnaTranscription .transcribe ("A" )). isEqualTo ( "U" );
43
43
}
44
44
45
45
@ Ignore ("Remove to run test" )
46
46
@ Test
47
47
public void testRnaTranscription () {
48
- assertEquals ( "UGCACCAGAAUU" , rnaTranscription .transcribe ("ACGTGGTCTTAA" ));
48
+ assertThat ( rnaTranscription .transcribe ("ACGTGGTCTTAA" )). isEqualTo ( "UGCACCAGAAUU" );
49
49
}
50
-
51
50
}
0 commit comments