@@ -72,7 +72,7 @@ void a_LevelEditorSetup_has_a_title() throws Exception {
7272 then (title .getText ()).isEqualTo ("Level Editor" );
7373 then (title .getHorizontalAlignment ()).isEqualTo (SwingConstants .CENTER );
7474 }
75-
75+
7676 @ Test
7777 void a_LevelEditorSetup_has_an_edit_button () throws Exception {
7878 // Given
@@ -85,7 +85,7 @@ void a_LevelEditorSetup_has_an_edit_button() throws Exception {
8585 then (editButton ).isNotNull ();
8686 then (editButton .getText ()).isEqualTo ("Edit" );
8787 }
88-
88+
8989 @ Test
9090 void a_LevelEditorSetup_has_a_back_button () throws Exception {
9191 // Given
@@ -237,23 +237,23 @@ void back_button_when_clicked_disposes_current_window_and_shows_home_window() th
237237 // Given
238238 LevelEditorSetup editorSetup = new LevelEditorSetup ();
239239 JButton backButton = findComponentByNameAsType (editorSetup , "LevelEditorSetup.back" , JButton .class );
240-
240+
241241 // When
242242 backButton .doClick ();
243-
243+
244244 then (editorSetup .isDisplayable ())
245245 .as ("Window is disposed when back button is clicked" )
246246 .isFalse ();
247-
247+
248248 // Get all visible windows after clicking back
249249 var visibleWindows = Arrays .stream (java .awt .Window .getWindows ())
250250 .filter (java .awt .Window ::isVisible )
251251 .toList ();
252-
252+
253253 then (visibleWindows )
254254 .as ("Exactly one window is visible (the HomeWindow)" )
255255 .hasSize (1 );
256-
256+
257257 then (visibleWindows .getFirst ())
258258 .as ("The visible window is a HomeWindow" )
259259 .isInstanceOf (HomeWindow .class );
@@ -265,7 +265,7 @@ void existing_level_names_are_rejected_when_edit_button_is_clicked() throws Exce
265265 // Create a test level file first
266266 Files .createDirectories (TEST_LEVEL_PATH .getParent ());
267267 Files .createFile (TEST_LEVEL_PATH );
268-
268+
269269 var editorSetup = new LevelEditorSetup ();
270270 var editButton = findComponentByNameAsType (editorSetup , "LevelEditorSetup.edit" , JButton .class );
271271 var nameInput = findComponentByNameAsType (editorSetup , "LevelEditorSetup.nameInput" , JTextField .class );
@@ -319,17 +319,17 @@ ExitHandler defaultExitHandler() {
319319 return exitStatus ::set ;
320320 }
321321 };
322-
322+
323323 JButton quitButton = findComponentByNameAsType (editorSetup , "LevelEditorSetup.quit" , JButton .class );
324-
324+
325325 // When
326326 quitButton .doClick ();
327-
327+
328328 then (exitStatus .get ())
329329 .isNotEqualTo (ExitHandler .FAILURE )
330330 .isEqualTo (ExitHandler .SUCCESS );
331331 }
332-
332+
333333 @ Test
334334 void a_LevelEditorSetup_has_level_name_input () throws Exception {
335335 // Given
@@ -342,11 +342,11 @@ void a_LevelEditorSetup_has_level_name_input() throws Exception {
342342 then (nameLabel ).isNotNull ();
343343 then (nameLabel .getText ()).isEqualTo ("Level name:" );
344344 then (nameLabel .getHorizontalAlignment ()).isEqualTo (SwingConstants .CENTER );
345-
345+
346346 then (nameInput ).isNotNull ();
347347 then (nameInput .getColumns ()).isEqualTo (15 );
348348 }
349-
349+
350350 @ Test
351351 void a_LevelEditorSetup_has_rows_input () throws Exception {
352352 // Given
@@ -359,11 +359,11 @@ void a_LevelEditorSetup_has_rows_input() throws Exception {
359359 then (rowsLabel ).isNotNull ();
360360 then (rowsLabel .getText ()).isEqualTo ("Number of rows:" );
361361 then (rowsLabel .getHorizontalAlignment ()).isEqualTo (SwingConstants .CENTER );
362-
362+
363363 then (rowsInput ).isNotNull ();
364364 then (rowsInput .getColumns ()).isEqualTo (5 );
365365 }
366-
366+
367367 @ Test
368368 void a_LevelEditorSetup_has_columns_input () throws Exception {
369369 // Given
@@ -376,11 +376,11 @@ void a_LevelEditorSetup_has_columns_input() throws Exception {
376376 then (columnsLabel ).isNotNull ();
377377 then (columnsLabel .getText ()).isEqualTo ("Number of columns:" );
378378 then (columnsLabel .getHorizontalAlignment ()).isEqualTo (SwingConstants .CENTER );
379-
379+
380380 then (columnsInput ).isNotNull ();
381381 then (columnsInput .getColumns ()).isEqualTo (5 );
382382 }
383-
383+
384384 @ Test
385385 void a_LevelEditorSetup_has_an_error_label () throws Exception {
386386 // Given
0 commit comments