11import org .junit .jupiter .api .BeforeEach ;
2+ import org .junit .jupiter .api .DisplayName ;
23import org .junit .jupiter .api .Test ;
34import org .junit .jupiter .api .Disabled ;
45
@@ -13,6 +14,7 @@ public void setup() {
1314 }
1415
1516 @ Test
17+ @ DisplayName ("Orange and orange and black" )
1618 public void testOrangeAndOrangeAndBlack () {
1719 assertThat (
1820 resistorColorTrio .label (new String []{"orange" , "orange" , "black" })
@@ -21,6 +23,7 @@ public void testOrangeAndOrangeAndBlack() {
2123
2224 @ Disabled ("Remove to run test" )
2325 @ Test
26+ @ DisplayName ("Blue and grey and brown" )
2427 public void testBlueAndGreyAndBrown () {
2528 assertThat (
2629 resistorColorTrio .label (new String []{"blue" , "grey" , "brown" })
@@ -29,6 +32,7 @@ public void testBlueAndGreyAndBrown() {
2932
3033 @ Disabled ("Remove to run test" )
3134 @ Test
35+ @ DisplayName ("Red and black and red" )
3236 public void testRedAndBlackAndRed () {
3337 assertThat (
3438 resistorColorTrio .label (new String []{"red" , "black" , "red" })
@@ -37,6 +41,7 @@ public void testRedAndBlackAndRed() {
3741
3842 @ Disabled ("Remove to run test" )
3943 @ Test
44+ @ DisplayName ("Green and brown and orange" )
4045 public void testGreenAndBrownAndOrange () {
4146 assertThat (
4247 resistorColorTrio .label (new String []{"green" , "brown" , "orange" })
@@ -45,6 +50,7 @@ public void testGreenAndBrownAndOrange() {
4550
4651 @ Disabled ("Remove to run test" )
4752 @ Test
53+ @ DisplayName ("Yellow and violet and yellow" )
4854 public void testYellowAndVioletAndYellow () {
4955 assertThat (
5056 resistorColorTrio .label (new String []{"yellow" , "violet" , "yellow" })
@@ -53,6 +59,7 @@ public void testYellowAndVioletAndYellow() {
5359
5460 @ Disabled ("Remove to run test" )
5561 @ Test
62+ @ DisplayName ("Blue and violet and blue" )
5663 public void testBlueAndVioletAndBlue () {
5764 assertThat (
5865 resistorColorTrio .label (new String []{"blue" , "violet" , "blue" })
@@ -61,6 +68,7 @@ public void testBlueAndVioletAndBlue() {
6168
6269 @ Disabled ("Remove to run test" )
6370 @ Test
71+ @ DisplayName ("Minimum possible value" )
6472 public void testBlackAndBlackAndBlack () {
6573 assertThat (
6674 resistorColorTrio .label (new String []{"black" , "black" , "black" })
@@ -69,6 +77,7 @@ public void testBlackAndBlackAndBlack() {
6977
7078 @ Disabled ("Remove to run test" )
7179 @ Test
80+ @ DisplayName ("Maximum possible value" )
7281 public void testWhiteAndWhiteAndWhite () {
7382 assertThat (
7483 resistorColorTrio .label (new String []{"white" , "white" , "white" })
@@ -77,6 +86,7 @@ public void testWhiteAndWhiteAndWhite() {
7786
7887 @ Disabled ("Remove to run test" )
7988 @ Test
89+ @ DisplayName ("First two colors make an invalid octal number" )
8090 public void testFirstTwoColorsMakeAnInvalidOctalNumber () {
8191 assertThat (
8292 resistorColorTrio .label (new String []{"black" , "grey" , "black" })
@@ -85,6 +95,7 @@ public void testFirstTwoColorsMakeAnInvalidOctalNumber() {
8595
8696 @ Disabled ("Remove to run test" )
8797 @ Test
98+ @ DisplayName ("Ignore extra colors" )
8899 public void testIgnoreExtraColors () {
89100 assertThat (
90101 resistorColorTrio .label (new String []{"blue" , "green" , "yellow" , "orange" })
0 commit comments