|
|
@@ -1,42 +1,49 @@
|
|
1
|
1
|
import org.junit.Assert;
|
|
2
|
|
-import org.junit.Test;
|
|
|
2
|
+import org.junit.Before;
|
|
3
|
3
|
import org.junit.Ignore;
|
|
|
4
|
+import org.junit.Test;
|
|
4
|
5
|
|
|
5
|
6
|
public class RnaTranscriptionTest {
|
|
6
|
7
|
|
|
|
8
|
+ private RnaTranscription rnaTranscription;
|
|
|
9
|
+
|
|
|
10
|
+ @Before
|
|
|
11
|
+ public void setUp() {
|
|
|
12
|
+ rnaTranscription = new RnaTranscription();
|
|
|
13
|
+ }
|
|
7
|
14
|
|
|
8
|
15
|
@Test
|
|
9
|
16
|
public void testRnaTranscriptionOfEmptyDnaIsEmptyRna() {
|
|
10
|
|
- Assert.assertEquals("", RnaTranscription.ofDna(""));
|
|
|
17
|
+ Assert.assertEquals("", rnaTranscription.ofDna(""));
|
|
11
|
18
|
}
|
|
12
|
19
|
|
|
13
|
20
|
@Ignore
|
|
14
|
21
|
@Test
|
|
15
|
22
|
public void testRnaTranscriptionOfCytosineIsGuanine() {
|
|
16
|
|
- Assert.assertEquals("G", RnaTranscription.ofDna("C"));
|
|
|
23
|
+ Assert.assertEquals("G", rnaTranscription.ofDna("C"));
|
|
17
|
24
|
}
|
|
18
|
25
|
|
|
19
|
26
|
@Ignore
|
|
20
|
27
|
@Test
|
|
21
|
28
|
public void testRnaTranscriptionOfGuanineIsCytosine() {
|
|
22
|
|
- Assert.assertEquals("C", RnaTranscription.ofDna("G"));
|
|
|
29
|
+ Assert.assertEquals("C", rnaTranscription.ofDna("G"));
|
|
23
|
30
|
}
|
|
24
|
31
|
|
|
25
|
32
|
@Ignore
|
|
26
|
33
|
@Test
|
|
27
|
34
|
public void testRnaTranscriptionOfThymineIsAdenine() {
|
|
28
|
|
- Assert.assertEquals("A", RnaTranscription.ofDna("T"));
|
|
|
35
|
+ Assert.assertEquals("A", rnaTranscription.ofDna("T"));
|
|
29
|
36
|
}
|
|
30
|
37
|
|
|
31
|
38
|
@Ignore
|
|
32
|
39
|
@Test
|
|
33
|
40
|
public void testRnaTranscriptionOfAdenineIsUracil() {
|
|
34
|
|
- Assert.assertEquals("U", RnaTranscription.ofDna("A"));
|
|
|
41
|
+ Assert.assertEquals("U", rnaTranscription.ofDna("A"));
|
|
35
|
42
|
}
|
|
36
|
43
|
|
|
37
|
44
|
@Ignore
|
|
38
|
45
|
@Test
|
|
39
|
46
|
public void testRnaTranscription() {
|
|
40
|
|
- Assert.assertEquals("UGCACCAGAAUU", RnaTranscription.ofDna("ACGTGGTCTTAA"));
|
|
|
47
|
+ Assert.assertEquals("UGCACCAGAAUU", rnaTranscription.ofDna("ACGTGGTCTTAA"));
|
|
41
|
48
|
}
|
|
42
|
49
|
}
|