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 ("Brown and black" )
1618 public void testBrownAndBlack () {
1719 assertThat (
1820 resistorColorDuo .value (new String []{"brown" , "black" })
@@ -21,6 +23,7 @@ public void testBrownAndBlack() {
2123
2224 @ Disabled ("Remove to run test" )
2325 @ Test
26+ @ DisplayName ("Blue and grey" )
2427 public void testBlueAndGrey () {
2528 assertThat (
2629 resistorColorDuo .value (new String []{ "blue" , "grey" })
@@ -29,6 +32,7 @@ public void testBlueAndGrey() {
2932
3033 @ Disabled ("Remove to run test" )
3134 @ Test
35+ @ DisplayName ("Yellow and violet" )
3236 public void testYellowAndViolet () {
3337 assertThat (
3438 resistorColorDuo .value (new String []{ "yellow" , "violet" })
@@ -37,6 +41,7 @@ public void testYellowAndViolet() {
3741
3842 @ Disabled ("Remove to run test" )
3943 @ Test
44+ @ DisplayName ("Orange and orange" )
4045 public void testOrangeAndOrange () {
4146 assertThat (
4247 resistorColorDuo .value (new String []{ "orange" , "orange" })
@@ -45,6 +50,7 @@ public void testOrangeAndOrange() {
4550
4651 @ Disabled ("Remove to run test" )
4752 @ Test
53+ @ DisplayName ("White and red" )
4854 public void testWhiteAndRed () {
4955 assertThat (
5056 resistorColorDuo .value (new String []{ "white" , "red" })
@@ -53,6 +59,7 @@ public void testWhiteAndRed() {
5359
5460 @ Disabled ("Remove to run test" )
5561 @ Test
62+ @ DisplayName ("Black and brown, one-digit" )
5663 public void testBlackAndBrownOneDigit () {
5764 assertThat (
5865 resistorColorDuo .value (new String []{ "black" , "brown" })
@@ -61,6 +68,7 @@ public void testBlackAndBrownOneDigit() {
6168
6269 @ Disabled ("Remove to run test" )
6370 @ Test
71+ @ DisplayName ("Ignore additional colors" )
6472 public void testIgnoreAdditionalColors () {
6573 assertThat (
6674 resistorColorDuo .value (new String []{ "green" , "brown" , "orange" })
0 commit comments