Przeglądaj źródła

removed final from tests

Karan Mirani 6 lat temu
rodzic
commit
ef8e54346c
1 zmienionych plików z 10 dodań i 10 usunięć
  1. 10
    10
      exercises/acronym/src/test/java/AcronymTest.java

+ 10
- 10
exercises/acronym/src/test/java/AcronymTest.java Wyświetl plik

@@ -7,40 +7,40 @@ public class AcronymTest {
7 7
 
8 8
     @Test
9 9
     public void basic() {
10
-        final String phrase = "Portable Network Graphics";
11
-        final String expected = "PNG";
10
+        String phrase = "Portable Network Graphics";
11
+        String expected = "PNG";
12 12
         assertEquals(expected, new Acronym(phrase).get());
13 13
     }
14 14
 
15 15
     @Ignore("Remove to run test")
16 16
     @Test
17 17
     public void lowercaseWords() {
18
-        final String phrase = "Ruby on Rails";
19
-        final String expected = "ROR";
18
+        String phrase = "Ruby on Rails";
19
+        String expected = "ROR";
20 20
         assertEquals(expected, new Acronym(phrase).get());
21 21
     }
22 22
 
23 23
     @Ignore("Remove to run test")
24 24
     @Test
25 25
     public void punctuation() {
26
-        final String phrase = "First In, First Out";
27
-        final String expected = "FIFO";
26
+        String phrase = "First In, First Out";
27
+        String expected = "FIFO";
28 28
         assertEquals(expected, new Acronym(phrase).get());
29 29
     }
30 30
 
31 31
     @Ignore("Remove to run test")
32 32
     @Test
33 33
     public void NonAcronymAllCapsWord() {
34
-        final String phrase = "GNU Image Manipulation Program";
35
-        final String expected = "GIMP";
34
+        String phrase = "GNU Image Manipulation Program";
35
+        String expected = "GIMP";
36 36
         assertEquals(expected, new Acronym(phrase).get());
37 37
     }
38 38
 
39 39
     @Ignore("Remove to run test")
40 40
     @Test
41 41
     public void punctuationWithoutWhitespace() {
42
-        final String phrase = "Complementary metal-oxide semiconductor";
43
-        final String expected = "CMOS";
42
+        String phrase = "Complementary metal-oxide semiconductor";
43
+        String expected = "CMOS";
44 44
         assertEquals(expected, new Acronym(phrase).get());
45 45
     }
46 46