1
1
import org .junit .jupiter .api .Disabled ;
2
+ import org .junit .jupiter .api .DisplayName ;
2
3
import org .junit .jupiter .api .Test ;
3
4
4
5
import static org .assertj .core .api .Assertions .assertThat ;
@@ -9,6 +10,7 @@ public class SpaceAgeTest {
9
10
private static final double MAXIMUM_DELTA = 1E-02 ;
10
11
11
12
@ Test
13
+ @ DisplayName ("age on Earth" )
12
14
public void ageOnEarth () {
13
15
SpaceAge age = new SpaceAge (1000000000 );
14
16
@@ -17,6 +19,7 @@ public void ageOnEarth() {
17
19
18
20
@ Disabled ("Remove to run test" )
19
21
@ Test
22
+ @ DisplayName ("age on Mercury" )
20
23
public void ageOnMercury () {
21
24
SpaceAge age = new SpaceAge (2134835688 );
22
25
@@ -25,6 +28,7 @@ public void ageOnMercury() {
25
28
26
29
@ Disabled ("Remove to run test" )
27
30
@ Test
31
+ @ DisplayName ("age on Venus" )
28
32
public void ageOnVenus () {
29
33
SpaceAge age = new SpaceAge (189839836 );
30
34
@@ -33,6 +37,7 @@ public void ageOnVenus() {
33
37
34
38
@ Disabled ("Remove to run test" )
35
39
@ Test
40
+ @ DisplayName ("age on Mars" )
36
41
public void ageOnMars () {
37
42
SpaceAge age = new SpaceAge (2129871239L );
38
43
@@ -41,6 +46,7 @@ public void ageOnMars() {
41
46
42
47
@ Disabled ("Remove to run test" )
43
48
@ Test
49
+ @ DisplayName ("age on Jupiter" )
44
50
public void ageOnJupiter () {
45
51
SpaceAge age = new SpaceAge (901876382 );
46
52
@@ -49,6 +55,7 @@ public void ageOnJupiter() {
49
55
50
56
@ Disabled ("Remove to run test" )
51
57
@ Test
58
+ @ DisplayName ("age on Saturn" )
52
59
public void ageOnSaturn () {
53
60
SpaceAge age = new SpaceAge (2000000000L );
54
61
@@ -57,6 +64,7 @@ public void ageOnSaturn() {
57
64
58
65
@ Disabled ("Remove to run test" )
59
66
@ Test
67
+ @ DisplayName ("age on Uranus" )
60
68
public void ageOnUranus () {
61
69
SpaceAge age = new SpaceAge (1210123456L );
62
70
@@ -65,6 +73,7 @@ public void ageOnUranus() {
65
73
66
74
@ Disabled ("Remove to run test" )
67
75
@ Test
76
+ @ DisplayName ("age on Neptune" )
68
77
public void ageOnNeptune () {
69
78
SpaceAge age = new SpaceAge (1821023456L );
70
79
0 commit comments