11import org .junit .jupiter .api .Disabled ;
2+ import org .junit .jupiter .api .DisplayName ;
23import org .junit .jupiter .api .Test ;
34
45import java .util .ArrayList ;
1213public class DominoesTest {
1314
1415 @ Test
16+ @ DisplayName ("empty input = empty output" )
1517 public void emtpyInputEmptyOutputTest () throws ChainNotFoundException {
1618 Dominoes dominoes = new Dominoes ();
1719
@@ -24,6 +26,7 @@ public void emtpyInputEmptyOutputTest() throws ChainNotFoundException {
2426
2527 @ Disabled ("Remove to run test" )
2628 @ Test
29+ @ DisplayName ("singleton input = singleton output" )
2730 public void singletonInputSingletonOutput () throws ChainNotFoundException {
2831 Dominoes dominoes = new Dominoes ();
2932
@@ -37,6 +40,7 @@ public void singletonInputSingletonOutput() throws ChainNotFoundException {
3740
3841 @ Disabled ("Remove to run test" )
3942 @ Test
43+ @ DisplayName ("singleton that can't be chained" )
4044 public void singletonCantBeChainedTest () {
4145 Dominoes dominoes = new Dominoes ();
4246
@@ -50,6 +54,7 @@ public void singletonCantBeChainedTest() {
5054
5155 @ Disabled ("Remove to run test" )
5256 @ Test
57+ @ DisplayName ("three elements" )
5358 public void threeElementsTest () throws ChainNotFoundException {
5459 Dominoes dominoes = new Dominoes ();
5560
@@ -63,6 +68,7 @@ public void threeElementsTest() throws ChainNotFoundException {
6368
6469 @ Disabled ("Remove to run test" )
6570 @ Test
71+ @ DisplayName ("can reverse dominoes" )
6672 public void canReverseDominoesTest () throws ChainNotFoundException {
6773 Dominoes dominoes = new Dominoes ();
6874
@@ -76,6 +82,7 @@ public void canReverseDominoesTest() throws ChainNotFoundException {
7682
7783 @ Disabled ("Remove to run test" )
7884 @ Test
85+ @ DisplayName ("can't be chained" )
7986 public void cantBeChainedTest () {
8087 Dominoes dominoes = new Dominoes ();
8188
@@ -89,6 +96,7 @@ public void cantBeChainedTest() {
8996
9097 @ Disabled ("Remove to run test" )
9198 @ Test
99+ @ DisplayName ("disconnected - simple" )
92100 public void disconnectedSimpleTest () {
93101 Dominoes dominoes = new Dominoes ();
94102
@@ -102,6 +110,7 @@ public void disconnectedSimpleTest() {
102110
103111 @ Disabled ("Remove to run test" )
104112 @ Test
113+ @ DisplayName ("disconnected - double loop" )
105114 public void disconnectedDoubleLoopTest () {
106115 Dominoes dominoes = new Dominoes ();
107116
@@ -115,6 +124,7 @@ public void disconnectedDoubleLoopTest() {
115124
116125 @ Disabled ("Remove to run test" )
117126 @ Test
127+ @ DisplayName ("disconnected - single isolated" )
118128 public void disconnectedSingleIsolatedTest () {
119129 Dominoes dominoes = new Dominoes ();
120130
@@ -128,6 +138,7 @@ public void disconnectedSingleIsolatedTest() {
128138
129139 @ Disabled ("Remove to run test" )
130140 @ Test
141+ @ DisplayName ("need backtrack" )
131142 public void needBacktrackTest () throws ChainNotFoundException {
132143 Dominoes dominoes = new Dominoes ();
133144
@@ -142,6 +153,7 @@ public void needBacktrackTest() throws ChainNotFoundException {
142153
143154 @ Disabled ("Remove to run test" )
144155 @ Test
156+ @ DisplayName ("separate loops" )
145157 public void separateLoopsTest () throws ChainNotFoundException {
146158 Dominoes dominoes = new Dominoes ();
147159
@@ -156,6 +168,7 @@ public void separateLoopsTest() throws ChainNotFoundException {
156168
157169 @ Disabled ("Remove to run test" )
158170 @ Test
171+ @ DisplayName ("nine elements" )
159172 public void nineElementsTest () throws ChainNotFoundException {
160173 Dominoes dominoes = new Dominoes ();
161174 Domino [] dominoesArray = {new Domino (1 , 2 ), new Domino (5 , 3 ), new Domino (3 , 1 ),
@@ -170,6 +183,7 @@ public void nineElementsTest() throws ChainNotFoundException {
170183
171184 @ Disabled ("Remove to run test" )
172185 @ Test
186+ @ DisplayName ("separate three-domino loops" )
173187 public void separateThreeDominoLoopsTest () {
174188 Dominoes dominoes = new Dominoes ();
175189
0 commit comments