소스 검색

removed final from tests (#1434)

Karan Mirani 8 년 전
부모
커밋
33c2d1cfcd
1개의 변경된 파일10개의 추가작업 그리고 10개의 파일을 삭제
  1. 10
    10
      exercises/acronym/src/test/java/AcronymTest.java

+ 10
- 10
exercises/acronym/src/test/java/AcronymTest.java 파일 보기

7
 
7
 
8
     @Test
8
     @Test
9
     public void basic() {
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
         assertEquals(expected, new Acronym(phrase).get());
12
         assertEquals(expected, new Acronym(phrase).get());
13
     }
13
     }
14
 
14
 
15
     @Ignore("Remove to run test")
15
     @Ignore("Remove to run test")
16
     @Test
16
     @Test
17
     public void lowercaseWords() {
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
         assertEquals(expected, new Acronym(phrase).get());
20
         assertEquals(expected, new Acronym(phrase).get());
21
     }
21
     }
22
 
22
 
23
     @Ignore("Remove to run test")
23
     @Ignore("Remove to run test")
24
     @Test
24
     @Test
25
     public void punctuation() {
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
         assertEquals(expected, new Acronym(phrase).get());
28
         assertEquals(expected, new Acronym(phrase).get());
29
     }
29
     }
30
 
30
 
31
     @Ignore("Remove to run test")
31
     @Ignore("Remove to run test")
32
     @Test
32
     @Test
33
     public void NonAcronymAllCapsWord() {
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
         assertEquals(expected, new Acronym(phrase).get());
36
         assertEquals(expected, new Acronym(phrase).get());
37
     }
37
     }
38
 
38
 
39
     @Ignore("Remove to run test")
39
     @Ignore("Remove to run test")
40
     @Test
40
     @Test
41
     public void punctuationWithoutWhitespace() {
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
         assertEquals(expected, new Acronym(phrase).get());
44
         assertEquals(expected, new Acronym(phrase).get());
45
     }
45
     }
46
 
46