11import org .junit .jupiter .api .Disabled ;
2+ import org .junit .jupiter .api .DisplayName ;
23import org .junit .jupiter .api .Test ;
34
45import static org .assertj .core .api .Assertions .assertThat ;
@@ -8,108 +9,126 @@ public class RaindropConverterTest {
89 private RaindropConverter raindropConverter = new RaindropConverter ();
910
1011 @ Test
12+ @ DisplayName ("the sound for 1 is 1" )
1113 public void soundFor1Is1 () {
1214 assertThat (raindropConverter .convert (1 )).isEqualTo ("1" );
1315 }
1416
1517 @ Disabled ("Remove to run test" )
1618 @ Test
19+ @ DisplayName ("the sound for 3 is Pling" )
1720 public void soundFor3IsPling () {
1821 assertThat (raindropConverter .convert (3 )).isEqualTo ("Pling" );
1922 }
2023
2124 @ Disabled ("Remove to run test" )
2225 @ Test
26+ @ DisplayName ("the sound for 5 is Plang" )
2327 public void soundFor5IsPlang () {
2428 assertThat (raindropConverter .convert (5 )).isEqualTo ("Plang" );
2529 }
2630
2731 @ Disabled ("Remove to run test" )
2832 @ Test
33+ @ DisplayName ("the sound for 7 is Plong" )
2934 public void soundFor7IsPlong () {
3035 assertThat (raindropConverter .convert (7 )).isEqualTo ("Plong" );
3136 }
3237
3338 @ Disabled ("Remove to run test" )
3439 @ Test
40+ @ DisplayName ("the sound for 6 is Pling as it has a factor 3" )
3541 public void soundFor6IsPlingAsItHasFactor3 () {
3642 assertThat (raindropConverter .convert (6 )).isEqualTo ("Pling" );
3743 }
3844
3945 @ Disabled ("Remove to run test" )
4046 @ Test
47+ @ DisplayName ("2 to the power 3 does not make a raindrop sound as 3 is the exponent not the base" )
4148 public void noSoundFor2Cubed () {
4249 assertThat (raindropConverter .convert (8 )).isEqualTo ("8" );
4350 }
4451
4552 @ Disabled ("Remove to run test" )
4653 @ Test
54+ @ DisplayName ("the sound for 9 is Pling as it has a factor 3" )
4755 public void soundFor9IsPlingAsItHasFactor3 () {
4856 assertThat (raindropConverter .convert (9 )).isEqualTo ("Pling" );
4957 }
5058
5159 @ Disabled ("Remove to run test" )
5260 @ Test
61+ @ DisplayName ("the sound for 10 is Plang as it has a factor 5" )
5362 public void soundFor10IsPlangAsItHasFactor5 () {
5463 assertThat (raindropConverter .convert (10 )).isEqualTo ("Plang" );
5564 }
5665
5766 @ Disabled ("Remove to run test" )
5867 @ Test
68+ @ DisplayName ("the sound for 14 is Plong as it has a factor of 7" )
5969 public void soundFor14IsPlongAsItHasFactor7 () {
6070 assertThat (raindropConverter .convert (14 )).isEqualTo ("Plong" );
6171 }
6272
6373 @ Disabled ("Remove to run test" )
6474 @ Test
75+ @ DisplayName ("the sound for 15 is PlingPlang as it has factors 3 and 5" )
6576 public void soundFor15IsPlingPlangAsItHasFactors3And5 () {
6677 assertThat (raindropConverter .convert (15 )).isEqualTo ("PlingPlang" );
6778 }
6879
6980 @ Disabled ("Remove to run test" )
7081 @ Test
82+ @ DisplayName ("the sound for 21 is PlingPlong as it has factors 3 and 7" )
7183 public void soundFor21IsPlingPlongAsItHasFactors3And7 () {
7284 assertThat (raindropConverter .convert (21 )).isEqualTo ("PlingPlong" );
7385 }
7486
7587 @ Disabled ("Remove to run test" )
7688 @ Test
89+ @ DisplayName ("the sound for 25 is Plang as it has a factor 5" )
7790 public void soundFor25IsPlangAsItHasFactor5 () {
7891 assertThat (raindropConverter .convert (25 )).isEqualTo ("Plang" );
7992 }
8093
8194 @ Disabled ("Remove to run test" )
8295 @ Test
96+ @ DisplayName ("the sound for 27 is Pling as it has a factor 3" )
8397 public void soundFor27IsPlingAsItHasFactor3 () {
8498 assertThat (raindropConverter .convert (27 )).isEqualTo ("Pling" );
8599 }
86100
87101 @ Disabled ("Remove to run test" )
88102 @ Test
103+ @ DisplayName ("the sound for 35 is PlangPlong as it has factors 5 and 7" )
89104 public void soundFor35IsPlangPlongAsItHasFactors5And7 () {
90105 assertThat (raindropConverter .convert (35 )).isEqualTo ("PlangPlong" );
91106 }
92107
93108 @ Disabled ("Remove to run test" )
94109 @ Test
110+ @ DisplayName ("the sound for 49 is Plong as it has a factor 7" )
95111 public void soundFor49IsPlongAsItHasFactor7 () {
96112 assertThat (raindropConverter .convert (49 )).isEqualTo ("Plong" );
97113 }
98114
99115 @ Disabled ("Remove to run test" )
100116 @ Test
117+ @ DisplayName ("the sound for 52 is 52" )
101118 public void noSoundFor52 () {
102119 assertThat (raindropConverter .convert (52 )).isEqualTo ("52" );
103120 }
104121
105122 @ Disabled ("Remove to run test" )
106123 @ Test
124+ @ DisplayName ("the sound for 105 is PlingPlangPlong as it has factors 3, 5 and 7" )
107125 public void soundFor105IsPlingPlangPlongAsItHasFactors3And5And7 () {
108126 assertThat (raindropConverter .convert (105 )).isEqualTo ("PlingPlangPlong" );
109127 }
110128
111129 @ Disabled ("Remove to run test" )
112130 @ Test
131+ @ DisplayName ("the sound for 3125 is Plang as it has a factor 5" )
113132 public void soundFor3125IsPlangAsItHasFactor5 () {
114133 assertThat (raindropConverter .convert (3125 )).isEqualTo ("Plang" );
115134 }
0 commit comments