Explorar el Código

Merge branch 'master' of git://github.com/exercism/java into rna-transcription

Scott Ertel hace 8 años
padre
commit
b2d023c852

+ 36
- 36
exercises/largest-series-product/src/test/java/LargestSeriesProductCalculatorTest.java Ver fichero

12
 
12
 
13
     @Test
13
     @Test
14
     public void testCorrectlyCalculatesLargestProductWhenSeriesLengthEqualsStringToSearchLength() {
14
     public void testCorrectlyCalculatesLargestProductWhenSeriesLengthEqualsStringToSearchLength() {
15
-        final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("29");
16
-        final long expectedProduct = 18;
15
+        LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("29");
16
+        long expectedProduct = 18;
17
 
17
 
18
-        final long actualProduct = calculator.calculateLargestProductForSeriesLength(2);
18
+        long actualProduct = calculator.calculateLargestProductForSeriesLength(2);
19
 
19
 
20
         assertEquals(expectedProduct, actualProduct);
20
         assertEquals(expectedProduct, actualProduct);
21
     }
21
     }
23
     @Ignore("Remove to run test")
23
     @Ignore("Remove to run test")
24
     @Test
24
     @Test
25
     public void testCorrectlyCalculatesLargestProductOfLengthTwoWithNumbersInOrder() {
25
     public void testCorrectlyCalculatesLargestProductOfLengthTwoWithNumbersInOrder() {
26
-        final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("0123456789");
27
-        final long expectedProduct = 72;
26
+        LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("0123456789");
27
+        long expectedProduct = 72;
28
 
28
 
29
-        final long actualProduct = calculator.calculateLargestProductForSeriesLength(2);
29
+        long actualProduct = calculator.calculateLargestProductForSeriesLength(2);
30
 
30
 
31
         assertEquals(expectedProduct, actualProduct);
31
         assertEquals(expectedProduct, actualProduct);
32
     }
32
     }
34
     @Ignore("Remove to run test")
34
     @Ignore("Remove to run test")
35
     @Test
35
     @Test
36
     public void testCorrectlyCalculatesLargestProductOfLengthTwoWithNumbersNotInOrder() {
36
     public void testCorrectlyCalculatesLargestProductOfLengthTwoWithNumbersNotInOrder() {
37
-        final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("576802143");
38
-        final long expectedProduct = 48;
37
+        LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("576802143");
38
+        long expectedProduct = 48;
39
 
39
 
40
-        final long actualProduct = calculator.calculateLargestProductForSeriesLength(2);
40
+        long actualProduct = calculator.calculateLargestProductForSeriesLength(2);
41
 
41
 
42
         assertEquals(expectedProduct, actualProduct);
42
         assertEquals(expectedProduct, actualProduct);
43
     }
43
     }
45
     @Ignore("Remove to run test")
45
     @Ignore("Remove to run test")
46
     @Test
46
     @Test
47
     public void testCorrectlyCalculatesLargestProductOfLengthThreeWithNumbersInOrder() {
47
     public void testCorrectlyCalculatesLargestProductOfLengthThreeWithNumbersInOrder() {
48
-        final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("0123456789");
49
-        final long expectedProduct = 504;
48
+        LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("0123456789");
49
+        long expectedProduct = 504;
50
 
50
 
51
-        final long actualProduct = calculator.calculateLargestProductForSeriesLength(3);
51
+        long actualProduct = calculator.calculateLargestProductForSeriesLength(3);
52
 
52
 
53
         assertEquals(expectedProduct, actualProduct);
53
         assertEquals(expectedProduct, actualProduct);
54
     }
54
     }
56
     @Ignore("Remove to run test")
56
     @Ignore("Remove to run test")
57
     @Test
57
     @Test
58
     public void testCorrectlyCalculatesLargestProductOfLengthThreeWithNumbersNotInOrder() {
58
     public void testCorrectlyCalculatesLargestProductOfLengthThreeWithNumbersNotInOrder() {
59
-        final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("1027839564");
60
-        final long expectedProduct = 270;
59
+        LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("1027839564");
60
+        long expectedProduct = 270;
61
 
61
 
62
-        final long actualProduct = calculator.calculateLargestProductForSeriesLength(3);
62
+        long actualProduct = calculator.calculateLargestProductForSeriesLength(3);
63
 
63
 
64
         assertEquals(expectedProduct, actualProduct);
64
         assertEquals(expectedProduct, actualProduct);
65
     }
65
     }
67
     @Ignore("Remove to run test")
67
     @Ignore("Remove to run test")
68
     @Test
68
     @Test
69
     public void testCorrectlyCalculatesLargestProductOfLengthFiveWithNumbersInOrder() {
69
     public void testCorrectlyCalculatesLargestProductOfLengthFiveWithNumbersInOrder() {
70
-        final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("0123456789");
71
-        final long expectedProduct = 15120;
70
+        LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("0123456789");
71
+        long expectedProduct = 15120;
72
 
72
 
73
-        final long actualProduct = calculator.calculateLargestProductForSeriesLength(5);
73
+        long actualProduct = calculator.calculateLargestProductForSeriesLength(5);
74
 
74
 
75
         assertEquals(expectedProduct, actualProduct);
75
         assertEquals(expectedProduct, actualProduct);
76
     }
76
     }
78
     @Ignore("Remove to run test")
78
     @Ignore("Remove to run test")
79
     @Test
79
     @Test
80
     public void testCorrectlyCalculatesLargestProductInLongStringToSearchV1() {
80
     public void testCorrectlyCalculatesLargestProductInLongStringToSearchV1() {
81
-        final LargestSeriesProductCalculator calculator
81
+        LargestSeriesProductCalculator calculator
82
                 = new LargestSeriesProductCalculator("73167176531330624919225119674426574742355349194934");
82
                 = new LargestSeriesProductCalculator("73167176531330624919225119674426574742355349194934");
83
 
83
 
84
-        final long expectedProduct = 23520;
84
+        long expectedProduct = 23520;
85
 
85
 
86
-        final long actualProduct = calculator.calculateLargestProductForSeriesLength(6);
86
+        long actualProduct = calculator.calculateLargestProductForSeriesLength(6);
87
 
87
 
88
         assertEquals(expectedProduct, actualProduct);
88
         assertEquals(expectedProduct, actualProduct);
89
     }
89
     }
91
     @Ignore("Remove to run test")
91
     @Ignore("Remove to run test")
92
     @Test
92
     @Test
93
     public void testCorrectlyCalculatesLargestProductOfZeroIfAllDigitsAreZeroes() {
93
     public void testCorrectlyCalculatesLargestProductOfZeroIfAllDigitsAreZeroes() {
94
-        final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("0000");
95
-        final long expectedProduct = 0;
94
+        LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("0000");
95
+        long expectedProduct = 0;
96
 
96
 
97
-        final long actualProduct = calculator.calculateLargestProductForSeriesLength(2);
97
+        long actualProduct = calculator.calculateLargestProductForSeriesLength(2);
98
 
98
 
99
         assertEquals(expectedProduct, actualProduct);
99
         assertEquals(expectedProduct, actualProduct);
100
     }
100
     }
102
     @Ignore("Remove to run test")
102
     @Ignore("Remove to run test")
103
     @Test
103
     @Test
104
     public void testCorrectlyCalculatesLargestProductOfZeroIfAllSeriesOfGivenLengthContainZero() {
104
     public void testCorrectlyCalculatesLargestProductOfZeroIfAllSeriesOfGivenLengthContainZero() {
105
-        final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("99099");
106
-        final long expectedProduct = 0;
105
+        LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("99099");
106
+        long expectedProduct = 0;
107
 
107
 
108
-        final long actualProduct = calculator.calculateLargestProductForSeriesLength(3);
108
+        long actualProduct = calculator.calculateLargestProductForSeriesLength(3);
109
 
109
 
110
         assertEquals(expectedProduct, actualProduct);
110
         assertEquals(expectedProduct, actualProduct);
111
     }
111
     }
113
     @Ignore("Remove to run test")
113
     @Ignore("Remove to run test")
114
     @Test
114
     @Test
115
     public void testSeriesLengthLongerThanLengthOfStringToTestIsRejected() {
115
     public void testSeriesLengthLongerThanLengthOfStringToTestIsRejected() {
116
-        final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("123");
116
+        LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("123");
117
 
117
 
118
         expectedException.expect(IllegalArgumentException.class);
118
         expectedException.expect(IllegalArgumentException.class);
119
         expectedException.expectMessage(
119
         expectedException.expectMessage(
125
     @Ignore("Remove to run test")
125
     @Ignore("Remove to run test")
126
     @Test
126
     @Test
127
     public void testCorrectlyCalculatesLargestProductOfLength0ForEmptyStringToSearch() {
127
     public void testCorrectlyCalculatesLargestProductOfLength0ForEmptyStringToSearch() {
128
-        final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("");
129
-        final long expectedProduct = 1;
128
+        LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("");
129
+        long expectedProduct = 1;
130
 
130
 
131
-        final long actualProduct = calculator.calculateLargestProductForSeriesLength(0);
131
+        long actualProduct = calculator.calculateLargestProductForSeriesLength(0);
132
 
132
 
133
         assertEquals(expectedProduct, actualProduct);
133
         assertEquals(expectedProduct, actualProduct);
134
     }
134
     }
136
     @Ignore("Remove to run test")
136
     @Ignore("Remove to run test")
137
     @Test
137
     @Test
138
     public void testCorrectlyCalculatesLargestProductOfLength0ForNonEmptyStringToSearch() {
138
     public void testCorrectlyCalculatesLargestProductOfLength0ForNonEmptyStringToSearch() {
139
-        final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("123");
140
-        final long expectedProduct = 1;
139
+        LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("123");
140
+        long expectedProduct = 1;
141
 
141
 
142
-        final long actualProduct = calculator.calculateLargestProductForSeriesLength(0);
142
+        long actualProduct = calculator.calculateLargestProductForSeriesLength(0);
143
 
143
 
144
         assertEquals(expectedProduct, actualProduct);
144
         assertEquals(expectedProduct, actualProduct);
145
     }
145
     }
147
     @Ignore("Remove to run test")
147
     @Ignore("Remove to run test")
148
     @Test
148
     @Test
149
     public void testEmptyStringToSearchAndSeriesOfNonZeroLengthIsRejected() {
149
     public void testEmptyStringToSearchAndSeriesOfNonZeroLengthIsRejected() {
150
-        final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("");
150
+        LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("");
151
 
151
 
152
         expectedException.expect(IllegalArgumentException.class);
152
         expectedException.expect(IllegalArgumentException.class);
153
         expectedException.expectMessage(
153
         expectedException.expectMessage(
168
     @Ignore("Remove to run test")
168
     @Ignore("Remove to run test")
169
     @Test
169
     @Test
170
     public void testNegativeSeriesLengthIsRejected() {
170
     public void testNegativeSeriesLengthIsRejected() {
171
-        final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("12345");
171
+        LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("12345");
172
 
172
 
173
         expectedException.expect(IllegalArgumentException.class);
173
         expectedException.expect(IllegalArgumentException.class);
174
         expectedException.expectMessage("Series length must be non-negative.");
174
         expectedException.expectMessage("Series length must be non-negative.");

+ 36
- 36
exercises/minesweeper/src/test/java/MinesweeperBoardTest.java Ver fichero

11
 
11
 
12
     @Test
12
     @Test
13
     public void testInputBoardWithNoRowsAndNoColumns() {
13
     public void testInputBoardWithNoRowsAndNoColumns() {
14
-        final List<String> inputBoard = Collections.emptyList();
15
-        final List<String> expectedNumberedBoard = Collections.emptyList();
16
-        final List<String> actualNumberedBoard = new MinesweeperBoard(inputBoard).withNumbers();
14
+        List<String> inputBoard = Collections.emptyList();
15
+        List<String> expectedNumberedBoard = Collections.emptyList();
16
+        List<String> actualNumberedBoard = new MinesweeperBoard(inputBoard).withNumbers();
17
 
17
 
18
         assertEquals(expectedNumberedBoard, actualNumberedBoard);
18
         assertEquals(expectedNumberedBoard, actualNumberedBoard);
19
     }
19
     }
21
     @Ignore("Remove to run test")
21
     @Ignore("Remove to run test")
22
     @Test
22
     @Test
23
     public void testInputBoardWithOneRowAndNoColumns() {
23
     public void testInputBoardWithOneRowAndNoColumns() {
24
-        final List<String> inputBoard = Collections.singletonList("");
25
-        final List<String> expectedNumberedBoard = Collections.singletonList("");
26
-        final List<String> actualNumberedBoard = new MinesweeperBoard(inputBoard).withNumbers();
24
+        List<String> inputBoard = Collections.singletonList("");
25
+        List<String> expectedNumberedBoard = Collections.singletonList("");
26
+        List<String> actualNumberedBoard = new MinesweeperBoard(inputBoard).withNumbers();
27
 
27
 
28
         assertEquals(expectedNumberedBoard, actualNumberedBoard);
28
         assertEquals(expectedNumberedBoard, actualNumberedBoard);
29
     }
29
     }
31
     @Ignore("Remove to run test")
31
     @Ignore("Remove to run test")
32
     @Test
32
     @Test
33
     public void testInputBoardWithNoMines() {
33
     public void testInputBoardWithNoMines() {
34
-        final List<String> inputBoard = Arrays.asList(
34
+        List<String> inputBoard = Arrays.asList(
35
                 "   ",
35
                 "   ",
36
                 "   ",
36
                 "   ",
37
                 "   "
37
                 "   "
38
         );
38
         );
39
 
39
 
40
-        final List<String> expectedNumberedBoard = Arrays.asList(
40
+        List<String> expectedNumberedBoard = Arrays.asList(
41
                 "   ",
41
                 "   ",
42
                 "   ",
42
                 "   ",
43
                 "   "
43
                 "   "
44
         );
44
         );
45
 
45
 
46
-        final List<String> actualNumberedBoard = new MinesweeperBoard(inputBoard).withNumbers();
46
+        List<String> actualNumberedBoard = new MinesweeperBoard(inputBoard).withNumbers();
47
 
47
 
48
         assertEquals(expectedNumberedBoard, actualNumberedBoard);
48
         assertEquals(expectedNumberedBoard, actualNumberedBoard);
49
     }
49
     }
51
     @Ignore("Remove to run test")
51
     @Ignore("Remove to run test")
52
     @Test
52
     @Test
53
     public void testInputBoardWithOnlyMines() {
53
     public void testInputBoardWithOnlyMines() {
54
-        final List<String> inputBoard = Arrays.asList(
54
+        List<String> inputBoard = Arrays.asList(
55
                 "***",
55
                 "***",
56
                 "***",
56
                 "***",
57
                 "***"
57
                 "***"
58
         );
58
         );
59
 
59
 
60
-        final List<String> expectedNumberedBoard = Arrays.asList(
60
+        List<String> expectedNumberedBoard = Arrays.asList(
61
                 "***",
61
                 "***",
62
                 "***",
62
                 "***",
63
                 "***"
63
                 "***"
64
         );
64
         );
65
 
65
 
66
-        final List<String> actualNumberedBoard = new MinesweeperBoard(inputBoard).withNumbers();
66
+        List<String> actualNumberedBoard = new MinesweeperBoard(inputBoard).withNumbers();
67
 
67
 
68
         assertEquals(expectedNumberedBoard, actualNumberedBoard);
68
         assertEquals(expectedNumberedBoard, actualNumberedBoard);
69
     }
69
     }
71
     @Ignore("Remove to run test")
71
     @Ignore("Remove to run test")
72
     @Test
72
     @Test
73
     public void testInputBoardWithSingleMineAtCenter() {
73
     public void testInputBoardWithSingleMineAtCenter() {
74
-        final List<String> inputBoard = Arrays.asList(
74
+        List<String> inputBoard = Arrays.asList(
75
                 "   ",
75
                 "   ",
76
                 " * ",
76
                 " * ",
77
                 "   "
77
                 "   "
78
         );
78
         );
79
 
79
 
80
-        final List<String> expectedNumberedBoard = Arrays.asList(
80
+        List<String> expectedNumberedBoard = Arrays.asList(
81
                 "111",
81
                 "111",
82
                 "1*1",
82
                 "1*1",
83
                 "111"
83
                 "111"
84
         );
84
         );
85
 
85
 
86
-        final List<String> actualNumberedBoard = new MinesweeperBoard(inputBoard).withNumbers();
86
+        List<String> actualNumberedBoard = new MinesweeperBoard(inputBoard).withNumbers();
87
 
87
 
88
         assertEquals(expectedNumberedBoard, actualNumberedBoard);
88
         assertEquals(expectedNumberedBoard, actualNumberedBoard);
89
     }
89
     }
91
     @Ignore("Remove to run test")
91
     @Ignore("Remove to run test")
92
     @Test
92
     @Test
93
     public void testInputBoardWithMinesAroundPerimeter() {
93
     public void testInputBoardWithMinesAroundPerimeter() {
94
-        final List<String> inputBoard = Arrays.asList(
94
+        List<String> inputBoard = Arrays.asList(
95
                 "***",
95
                 "***",
96
                 "* *",
96
                 "* *",
97
                 "***"
97
                 "***"
98
         );
98
         );
99
 
99
 
100
-        final List<String> expectedNumberedBoard = Arrays.asList(
100
+        List<String> expectedNumberedBoard = Arrays.asList(
101
                 "***",
101
                 "***",
102
                 "*8*",
102
                 "*8*",
103
                 "***"
103
                 "***"
104
         );
104
         );
105
 
105
 
106
-        final List<String> actualNumberedBoard = new MinesweeperBoard(inputBoard).withNumbers();
106
+        List<String> actualNumberedBoard = new MinesweeperBoard(inputBoard).withNumbers();
107
 
107
 
108
         assertEquals(expectedNumberedBoard, actualNumberedBoard);
108
         assertEquals(expectedNumberedBoard, actualNumberedBoard);
109
     }
109
     }
111
     @Ignore("Remove to run test")
111
     @Ignore("Remove to run test")
112
     @Test
112
     @Test
113
     public void testInputBoardWithSingleRowAndTwoMines() {
113
     public void testInputBoardWithSingleRowAndTwoMines() {
114
-        final List<String> inputBoard = Collections.singletonList(
114
+        List<String> inputBoard = Collections.singletonList(
115
                 " * * "
115
                 " * * "
116
         );
116
         );
117
 
117
 
118
-        final List<String> expectedNumberedBoard = Collections.singletonList(
118
+        List<String> expectedNumberedBoard = Collections.singletonList(
119
                 "1*2*1"
119
                 "1*2*1"
120
         );
120
         );
121
 
121
 
122
-        final List<String> actualNumberedBoard = new MinesweeperBoard(inputBoard).withNumbers();
122
+        List<String> actualNumberedBoard = new MinesweeperBoard(inputBoard).withNumbers();
123
 
123
 
124
         assertEquals(expectedNumberedBoard, actualNumberedBoard);
124
         assertEquals(expectedNumberedBoard, actualNumberedBoard);
125
     }
125
     }
127
     @Ignore("Remove to run test")
127
     @Ignore("Remove to run test")
128
     @Test
128
     @Test
129
     public void testInputBoardWithSingleRowAndTwoMinesAtEdges() {
129
     public void testInputBoardWithSingleRowAndTwoMinesAtEdges() {
130
-        final List<String> inputBoard = Collections.singletonList(
130
+        List<String> inputBoard = Collections.singletonList(
131
                 "*   *"
131
                 "*   *"
132
         );
132
         );
133
 
133
 
134
-        final List<String> expectedNumberedBoard = Collections.singletonList(
134
+        List<String> expectedNumberedBoard = Collections.singletonList(
135
                 "*1 1*"
135
                 "*1 1*"
136
         );
136
         );
137
 
137
 
138
-        final List<String> actualNumberedBoard = new MinesweeperBoard(inputBoard).withNumbers();
138
+        List<String> actualNumberedBoard = new MinesweeperBoard(inputBoard).withNumbers();
139
 
139
 
140
         assertEquals(expectedNumberedBoard, actualNumberedBoard);
140
         assertEquals(expectedNumberedBoard, actualNumberedBoard);
141
     }
141
     }
143
     @Ignore("Remove to run test")
143
     @Ignore("Remove to run test")
144
     @Test
144
     @Test
145
     public void testInputBoardWithSingleColumnAndTwoMines() {
145
     public void testInputBoardWithSingleColumnAndTwoMines() {
146
-        final List<String> inputBoard = Arrays.asList(
146
+        List<String> inputBoard = Arrays.asList(
147
                 " ",
147
                 " ",
148
                 "*",
148
                 "*",
149
                 " ",
149
                 " ",
151
                 " "
151
                 " "
152
         );
152
         );
153
 
153
 
154
-        final List<String> expectedNumberedBoard = Arrays.asList(
154
+        List<String> expectedNumberedBoard = Arrays.asList(
155
                 "1",
155
                 "1",
156
                 "*",
156
                 "*",
157
                 "2",
157
                 "2",
159
                 "1"
159
                 "1"
160
         );
160
         );
161
 
161
 
162
-        final List<String> actualNumberedBoard = new MinesweeperBoard(inputBoard).withNumbers();
162
+        List<String> actualNumberedBoard = new MinesweeperBoard(inputBoard).withNumbers();
163
 
163
 
164
         assertEquals(expectedNumberedBoard, actualNumberedBoard);
164
         assertEquals(expectedNumberedBoard, actualNumberedBoard);
165
     }
165
     }
167
     @Ignore("Remove to run test")
167
     @Ignore("Remove to run test")
168
     @Test
168
     @Test
169
     public void testInputBoardWithSingleColumnAndTwoMinesAtEdges() {
169
     public void testInputBoardWithSingleColumnAndTwoMinesAtEdges() {
170
-        final List<String> inputBoard = Arrays.asList(
170
+        List<String> inputBoard = Arrays.asList(
171
                 "*",
171
                 "*",
172
                 " ",
172
                 " ",
173
                 " ",
173
                 " ",
175
                 "*"
175
                 "*"
176
         );
176
         );
177
 
177
 
178
-        final List<String> expectedNumberedBoard = Arrays.asList(
178
+        List<String> expectedNumberedBoard = Arrays.asList(
179
                 "*",
179
                 "*",
180
                 "1",
180
                 "1",
181
                 " ",
181
                 " ",
183
                 "*"
183
                 "*"
184
         );
184
         );
185
 
185
 
186
-        final List<String> actualNumberedBoard = new MinesweeperBoard(inputBoard).withNumbers();
186
+        List<String> actualNumberedBoard = new MinesweeperBoard(inputBoard).withNumbers();
187
 
187
 
188
         assertEquals(expectedNumberedBoard, actualNumberedBoard);
188
         assertEquals(expectedNumberedBoard, actualNumberedBoard);
189
     }
189
     }
191
     @Ignore("Remove to run test")
191
     @Ignore("Remove to run test")
192
     @Test
192
     @Test
193
     public void testInputBoardWithMinesInCross() {
193
     public void testInputBoardWithMinesInCross() {
194
-        final List<String> inputBoard = Arrays.asList(
194
+        List<String> inputBoard = Arrays.asList(
195
                 "  *  ",
195
                 "  *  ",
196
                 "  *  ",
196
                 "  *  ",
197
                 "*****",
197
                 "*****",
199
                 "  *  "
199
                 "  *  "
200
         );
200
         );
201
 
201
 
202
-        final List<String> expectedNumberedBoard = Arrays.asList(
202
+        List<String> expectedNumberedBoard = Arrays.asList(
203
                 " 2*2 ",
203
                 " 2*2 ",
204
                 "25*52",
204
                 "25*52",
205
                 "*****",
205
                 "*****",
207
                 " 2*2 "
207
                 " 2*2 "
208
         );
208
         );
209
 
209
 
210
-        final List<String> actualNumberedBoard = new MinesweeperBoard(inputBoard).withNumbers();
210
+        List<String> actualNumberedBoard = new MinesweeperBoard(inputBoard).withNumbers();
211
 
211
 
212
         assertEquals(expectedNumberedBoard, actualNumberedBoard);
212
         assertEquals(expectedNumberedBoard, actualNumberedBoard);
213
     }
213
     }
215
     @Ignore("Remove to run test")
215
     @Ignore("Remove to run test")
216
     @Test
216
     @Test
217
     public void testLargeInputBoard() {
217
     public void testLargeInputBoard() {
218
-        final List<String> inputBoard = Arrays.asList(
218
+        List<String> inputBoard = Arrays.asList(
219
                 " *  * ",
219
                 " *  * ",
220
                 "  *   ",
220
                 "  *   ",
221
                 "    * ",
221
                 "    * ",
224
                 "      "
224
                 "      "
225
         );
225
         );
226
 
226
 
227
-        final List<String> expectedNumberedBoard = Arrays.asList(
227
+        List<String> expectedNumberedBoard = Arrays.asList(
228
                 "1*22*1",
228
                 "1*22*1",
229
                 "12*322",
229
                 "12*322",
230
                 " 123*2",
230
                 " 123*2",
233
                 "111111"
233
                 "111111"
234
         );
234
         );
235
 
235
 
236
-        final List<String> actualNumberedBoard = new MinesweeperBoard(inputBoard).withNumbers();
236
+        List<String> actualNumberedBoard = new MinesweeperBoard(inputBoard).withNumbers();
237
 
237
 
238
         assertEquals(expectedNumberedBoard, actualNumberedBoard);
238
         assertEquals(expectedNumberedBoard, actualNumberedBoard);
239
     }
239
     }