1
1
import org .junit .jupiter .api .BeforeEach ;
2
2
import org .junit .jupiter .api .Disabled ;
3
+ import org .junit .jupiter .api .DisplayName ;
3
4
import org .junit .jupiter .api .Test ;
4
5
5
6
import static org .assertj .core .api .Assertions .assertThat ;
@@ -14,12 +15,14 @@ public void setUp() {
14
15
}
15
16
16
17
@ Test
18
+ @ DisplayName ("empty spiral" )
17
19
public void testEmptySpiral () {
18
20
assertThat (spiralMatrixBuilder .buildMatrixOfSize (0 )).isEmpty ();
19
21
}
20
22
21
23
@ Disabled ("Remove to run test" )
22
24
@ Test
25
+ @ DisplayName ("trivial spiral" )
23
26
public void testTrivialSpiral () {
24
27
int [][] expected = {
25
28
{1 }
@@ -30,6 +33,7 @@ public void testTrivialSpiral() {
30
33
31
34
@ Disabled ("Remove to run test" )
32
35
@ Test
36
+ @ DisplayName ("spiral of size 2" )
33
37
public void testSpiralOfSize2 () {
34
38
int [][] expected = {
35
39
{1 , 2 },
@@ -41,6 +45,7 @@ public void testSpiralOfSize2() {
41
45
42
46
@ Disabled ("Remove to run test" )
43
47
@ Test
48
+ @ DisplayName ("spiral of size 3" )
44
49
public void testSpiralOfSize3 () {
45
50
int [][] expected = {
46
51
{1 , 2 , 3 },
@@ -53,6 +58,7 @@ public void testSpiralOfSize3() {
53
58
54
59
@ Disabled ("Remove to run test" )
55
60
@ Test
61
+ @ DisplayName ("spiral of size 4" )
56
62
public void testSpiralOfSize4 () {
57
63
int [][] expected = {
58
64
{ 1 , 2 , 3 , 4 },
@@ -66,6 +72,7 @@ public void testSpiralOfSize4() {
66
72
67
73
@ Disabled ("Remove to run test" )
68
74
@ Test
75
+ @ DisplayName ("spiral of size 5" )
69
76
public void testSpiralOfSize5 () {
70
77
int [][] expected = {
71
78
{ 1 , 2 , 3 , 4 , 5 },
0 commit comments