Просмотр исходного кода

Merge pull request #1214 from FridaTveit/RnaTranscriptionUpdate

rna-transcription: update tests to version 1.1.0
Sam Warner 8 лет назад
Родитель
Сommit
ee6e73fb7b
Аккаунт пользователя с таким Email не найден

+ 1
- 1
exercises/rna-transcription/.meta/version Просмотреть файл

@@ -1 +1 @@
1
-1.0.1
1
+1.1.0

+ 0
- 29
exercises/rna-transcription/src/test/java/RnaTranscriptionTest.java Просмотреть файл

@@ -1,16 +1,11 @@
1 1
 import org.junit.Before;
2 2
 import org.junit.Ignore;
3
-import org.junit.Rule;
4 3
 import org.junit.Test;
5
-import org.junit.rules.ExpectedException;
6 4
 
7 5
 import static org.junit.Assert.assertEquals;
8 6
 
9 7
 public class RnaTranscriptionTest {
10 8
 
11
-    @Rule
12
-    public ExpectedException expectedException = ExpectedException.none();
13
-
14 9
     private RnaTranscription rnaTranscription;
15 10
 
16 11
     @Before
@@ -47,28 +42,4 @@ public class RnaTranscriptionTest {
47 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
 }