11import org .junit .jupiter .api .Disabled ;
2+ import org .junit .jupiter .api .DisplayName ;
23import org .junit .jupiter .api .Test ;
34
45import java .util .Arrays ;
1011public class FlowerFieldBoardTest {
1112
1213 @ Test
14+ @ DisplayName ("no rows" )
1315 public void testInputBoardWithNoRowsAndNoColumns () {
1416 List <String > inputBoard = Collections .emptyList ();
1517 List <String > expectedNumberedBoard = Collections .emptyList ();
@@ -20,6 +22,7 @@ public void testInputBoardWithNoRowsAndNoColumns() {
2022
2123 @ Disabled ("Remove to run test" )
2224 @ Test
25+ @ DisplayName ("no columns" )
2326 public void testInputBoardWithOneRowAndNoColumns () {
2427 List <String > inputBoard = Collections .singletonList ("" );
2528 List <String > expectedNumberedBoard = Collections .singletonList ("" );
@@ -30,6 +33,7 @@ public void testInputBoardWithOneRowAndNoColumns() {
3033
3134 @ Disabled ("Remove to run test" )
3235 @ Test
36+ @ DisplayName ("no flowers" )
3337 public void testInputBoardWithNoFlowers () {
3438 List <String > inputBoard = Arrays .asList (
3539 " " ,
@@ -50,6 +54,7 @@ public void testInputBoardWithNoFlowers() {
5054
5155 @ Disabled ("Remove to run test" )
5256 @ Test
57+ @ DisplayName ("garden full of flowers" )
5358 public void testInputBoardWithOnlyFlowers () {
5459 List <String > inputBoard = Arrays .asList (
5560 "***" ,
@@ -70,6 +75,7 @@ public void testInputBoardWithOnlyFlowers() {
7075
7176 @ Disabled ("Remove to run test" )
7277 @ Test
78+ @ DisplayName ("flower surrounded by spaces" )
7379 public void testInputBoardWithSingleFlowerAtCenter () {
7480 List <String > inputBoard = Arrays .asList (
7581 " " ,
@@ -90,6 +96,7 @@ public void testInputBoardWithSingleFlowerAtCenter() {
9096
9197 @ Disabled ("Remove to run test" )
9298 @ Test
99+ @ DisplayName ("space surrounded by flowers" )
93100 public void testInputBoardWithFlowersAroundPerimeter () {
94101 List <String > inputBoard = Arrays .asList (
95102 "***" ,
@@ -110,6 +117,7 @@ public void testInputBoardWithFlowersAroundPerimeter() {
110117
111118 @ Disabled ("Remove to run test" )
112119 @ Test
120+ @ DisplayName ("horizontal line" )
113121 public void testInputBoardWithSingleRowAndTwoFlowers () {
114122 List <String > inputBoard = Collections .singletonList (
115123 " * * "
@@ -126,6 +134,7 @@ public void testInputBoardWithSingleRowAndTwoFlowers() {
126134
127135 @ Disabled ("Remove to run test" )
128136 @ Test
137+ @ DisplayName ("horizontal line, flowers at edges" )
129138 public void testInputBoardWithSingleRowAndTwoFlowersAtEdges () {
130139 List <String > inputBoard = Collections .singletonList (
131140 "* *"
@@ -142,6 +151,7 @@ public void testInputBoardWithSingleRowAndTwoFlowersAtEdges() {
142151
143152 @ Disabled ("Remove to run test" )
144153 @ Test
154+ @ DisplayName ("vertical line" )
145155 public void testInputBoardWithSingleColumnAndTwoFlowers () {
146156 List <String > inputBoard = Arrays .asList (
147157 " " ,
@@ -166,6 +176,7 @@ public void testInputBoardWithSingleColumnAndTwoFlowers() {
166176
167177 @ Disabled ("Remove to run test" )
168178 @ Test
179+ @ DisplayName ("vertical line, flowers at edges" )
169180 public void testInputBoardWithSingleColumnAndTwoFlowersAtEdges () {
170181 List <String > inputBoard = Arrays .asList (
171182 "*" ,
@@ -190,6 +201,7 @@ public void testInputBoardWithSingleColumnAndTwoFlowersAtEdges() {
190201
191202 @ Disabled ("Remove to run test" )
192203 @ Test
204+ @ DisplayName ("cross" )
193205 public void testInputBoardWithFlowersInCross () {
194206 List <String > inputBoard = Arrays .asList (
195207 " * " ,
@@ -214,6 +226,7 @@ public void testInputBoardWithFlowersInCross() {
214226
215227 @ Disabled ("Remove to run test" )
216228 @ Test
229+ @ DisplayName ("large garden" )
217230 public void testLargeInputBoard () {
218231 List <String > inputBoard = Arrays .asList (
219232 " * * " ,
0 commit comments