Skip to content

Commit 819c0a0

Browse files
Add DisplayName annotations to resistor-color
1 parent 677f24e commit 819c0a0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

exercises/practice/resistor-color/src/test/java/ResistorColorTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import org.junit.jupiter.api.BeforeEach;
2+
import org.junit.jupiter.api.DisplayName;
23
import org.junit.jupiter.api.Test;
34
import org.junit.jupiter.api.Disabled;
45
import static org.assertj.core.api.Assertions.assertThat;
@@ -13,24 +14,28 @@ public void setup() {
1314
}
1415

1516
@Test
17+
@DisplayName("Black")
1618
public void testBlackColorCode() {
1719
assertThat(resistorColor.colorCode("black")).isEqualTo(0);
1820
}
1921

2022
@Disabled("Remove to run test")
2123
@Test
24+
@DisplayName("white")
2225
public void testWhiteColorCode() {
2326
assertThat(resistorColor.colorCode("white")).isEqualTo(9);
2427
}
2528

2629
@Disabled("Remove to run test")
2730
@Test
31+
@DisplayName("Orange")
2832
public void testOrangeColorCode() {
2933
assertThat(resistorColor.colorCode("orange")).isEqualTo(3);
3034
}
3135

3236
@Disabled("Remove to run test")
3337
@Test
38+
@DisplayName("Colors")
3439
public void testColors() {
3540
assertThat(resistorColor.colors()).containsExactly(
3641
"black", "brown", "red", "orange", "yellow", "green", "blue", "violet", "grey", "white"

0 commit comments

Comments
 (0)