@@ -11,211 +11,211 @@ public class MinesweeperBoardTest {
1111
1212 @ Test
1313 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 ();
1717
1818 assertEquals (expectedNumberedBoard , actualNumberedBoard );
1919 }
2020
2121 @ Ignore ("Remove to run test" )
2222 @ Test
2323 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 ();
2727
2828 assertEquals (expectedNumberedBoard , actualNumberedBoard );
2929 }
3030
3131 @ Ignore ("Remove to run test" )
3232 @ Test
3333 public void testInputBoardWithNoMines () {
34- final List <String > inputBoard = Arrays .asList (
34+ List <String > inputBoard = Arrays .asList (
3535 " " ,
3636 " " ,
3737 " "
3838 );
3939
40- final List <String > expectedNumberedBoard = Arrays .asList (
40+ List <String > expectedNumberedBoard = Arrays .asList (
4141 " " ,
4242 " " ,
4343 " "
4444 );
4545
46- final List <String > actualNumberedBoard = new MinesweeperBoard (inputBoard ).withNumbers ();
46+ List <String > actualNumberedBoard = new MinesweeperBoard (inputBoard ).withNumbers ();
4747
4848 assertEquals (expectedNumberedBoard , actualNumberedBoard );
4949 }
5050
5151 @ Ignore ("Remove to run test" )
5252 @ Test
5353 public void testInputBoardWithOnlyMines () {
54- final List <String > inputBoard = Arrays .asList (
54+ List <String > inputBoard = Arrays .asList (
5555 "***" ,
5656 "***" ,
5757 "***"
5858 );
5959
60- final List <String > expectedNumberedBoard = Arrays .asList (
60+ List <String > expectedNumberedBoard = Arrays .asList (
6161 "***" ,
6262 "***" ,
6363 "***"
6464 );
6565
66- final List <String > actualNumberedBoard = new MinesweeperBoard (inputBoard ).withNumbers ();
66+ List <String > actualNumberedBoard = new MinesweeperBoard (inputBoard ).withNumbers ();
6767
6868 assertEquals (expectedNumberedBoard , actualNumberedBoard );
6969 }
7070
7171 @ Ignore ("Remove to run test" )
7272 @ Test
7373 public void testInputBoardWithSingleMineAtCenter () {
74- final List <String > inputBoard = Arrays .asList (
74+ List <String > inputBoard = Arrays .asList (
7575 " " ,
7676 " * " ,
7777 " "
7878 );
7979
80- final List <String > expectedNumberedBoard = Arrays .asList (
80+ List <String > expectedNumberedBoard = Arrays .asList (
8181 "111" ,
8282 "1*1" ,
8383 "111"
8484 );
8585
86- final List <String > actualNumberedBoard = new MinesweeperBoard (inputBoard ).withNumbers ();
86+ List <String > actualNumberedBoard = new MinesweeperBoard (inputBoard ).withNumbers ();
8787
8888 assertEquals (expectedNumberedBoard , actualNumberedBoard );
8989 }
9090
9191 @ Ignore ("Remove to run test" )
9292 @ Test
9393 public void testInputBoardWithMinesAroundPerimeter () {
94- final List <String > inputBoard = Arrays .asList (
94+ List <String > inputBoard = Arrays .asList (
9595 "***" ,
9696 "* *" ,
9797 "***"
9898 );
9999
100- final List <String > expectedNumberedBoard = Arrays .asList (
100+ List <String > expectedNumberedBoard = Arrays .asList (
101101 "***" ,
102102 "*8*" ,
103103 "***"
104104 );
105105
106- final List <String > actualNumberedBoard = new MinesweeperBoard (inputBoard ).withNumbers ();
106+ List <String > actualNumberedBoard = new MinesweeperBoard (inputBoard ).withNumbers ();
107107
108108 assertEquals (expectedNumberedBoard , actualNumberedBoard );
109109 }
110110
111111 @ Ignore ("Remove to run test" )
112112 @ Test
113113 public void testInputBoardWithSingleRowAndTwoMines () {
114- final List <String > inputBoard = Collections .singletonList (
114+ List <String > inputBoard = Collections .singletonList (
115115 " * * "
116116 );
117117
118- final List <String > expectedNumberedBoard = Collections .singletonList (
118+ List <String > expectedNumberedBoard = Collections .singletonList (
119119 "1*2*1"
120120 );
121121
122- final List <String > actualNumberedBoard = new MinesweeperBoard (inputBoard ).withNumbers ();
122+ List <String > actualNumberedBoard = new MinesweeperBoard (inputBoard ).withNumbers ();
123123
124124 assertEquals (expectedNumberedBoard , actualNumberedBoard );
125125 }
126126
127127 @ Ignore ("Remove to run test" )
128128 @ Test
129129 public void testInputBoardWithSingleRowAndTwoMinesAtEdges () {
130- final List <String > inputBoard = Collections .singletonList (
130+ List <String > inputBoard = Collections .singletonList (
131131 "* *"
132132 );
133133
134- final List <String > expectedNumberedBoard = Collections .singletonList (
134+ List <String > expectedNumberedBoard = Collections .singletonList (
135135 "*1 1*"
136136 );
137137
138- final List <String > actualNumberedBoard = new MinesweeperBoard (inputBoard ).withNumbers ();
138+ List <String > actualNumberedBoard = new MinesweeperBoard (inputBoard ).withNumbers ();
139139
140140 assertEquals (expectedNumberedBoard , actualNumberedBoard );
141141 }
142142
143143 @ Ignore ("Remove to run test" )
144144 @ Test
145145 public void testInputBoardWithSingleColumnAndTwoMines () {
146- final List <String > inputBoard = Arrays .asList (
146+ List <String > inputBoard = Arrays .asList (
147147 " " ,
148148 "*" ,
149149 " " ,
150150 "*" ,
151151 " "
152152 );
153153
154- final List <String > expectedNumberedBoard = Arrays .asList (
154+ List <String > expectedNumberedBoard = Arrays .asList (
155155 "1" ,
156156 "*" ,
157157 "2" ,
158158 "*" ,
159159 "1"
160160 );
161161
162- final List <String > actualNumberedBoard = new MinesweeperBoard (inputBoard ).withNumbers ();
162+ List <String > actualNumberedBoard = new MinesweeperBoard (inputBoard ).withNumbers ();
163163
164164 assertEquals (expectedNumberedBoard , actualNumberedBoard );
165165 }
166166
167167 @ Ignore ("Remove to run test" )
168168 @ Test
169169 public void testInputBoardWithSingleColumnAndTwoMinesAtEdges () {
170- final List <String > inputBoard = Arrays .asList (
170+ List <String > inputBoard = Arrays .asList (
171171 "*" ,
172172 " " ,
173173 " " ,
174174 " " ,
175175 "*"
176176 );
177177
178- final List <String > expectedNumberedBoard = Arrays .asList (
178+ List <String > expectedNumberedBoard = Arrays .asList (
179179 "*" ,
180180 "1" ,
181181 " " ,
182182 "1" ,
183183 "*"
184184 );
185185
186- final List <String > actualNumberedBoard = new MinesweeperBoard (inputBoard ).withNumbers ();
186+ List <String > actualNumberedBoard = new MinesweeperBoard (inputBoard ).withNumbers ();
187187
188188 assertEquals (expectedNumberedBoard , actualNumberedBoard );
189189 }
190190
191191 @ Ignore ("Remove to run test" )
192192 @ Test
193193 public void testInputBoardWithMinesInCross () {
194- final List <String > inputBoard = Arrays .asList (
194+ List <String > inputBoard = Arrays .asList (
195195 " * " ,
196196 " * " ,
197197 "*****" ,
198198 " * " ,
199199 " * "
200200 );
201201
202- final List <String > expectedNumberedBoard = Arrays .asList (
202+ List <String > expectedNumberedBoard = Arrays .asList (
203203 " 2*2 " ,
204204 "25*52" ,
205205 "*****" ,
206206 "25*52" ,
207207 " 2*2 "
208208 );
209209
210- final List <String > actualNumberedBoard = new MinesweeperBoard (inputBoard ).withNumbers ();
210+ List <String > actualNumberedBoard = new MinesweeperBoard (inputBoard ).withNumbers ();
211211
212212 assertEquals (expectedNumberedBoard , actualNumberedBoard );
213213 }
214214
215215 @ Ignore ("Remove to run test" )
216216 @ Test
217217 public void testLargeInputBoard () {
218- final List <String > inputBoard = Arrays .asList (
218+ List <String > inputBoard = Arrays .asList (
219219 " * * " ,
220220 " * " ,
221221 " * " ,
@@ -224,7 +224,7 @@ public void testLargeInputBoard() {
224224 " "
225225 );
226226
227- final List <String > expectedNumberedBoard = Arrays .asList (
227+ List <String > expectedNumberedBoard = Arrays .asList (
228228 "1*22*1" ,
229229 "12*322" ,
230230 " 123*2" ,
@@ -233,7 +233,7 @@ public void testLargeInputBoard() {
233233 "111111"
234234 );
235235
236- final List <String > actualNumberedBoard = new MinesweeperBoard (inputBoard ).withNumbers ();
236+ List <String > actualNumberedBoard = new MinesweeperBoard (inputBoard ).withNumbers ();
237237
238238 assertEquals (expectedNumberedBoard , actualNumberedBoard );
239239 }
0 commit comments