diff --git a/exercises/practice/dominoes/src/test/java/DominoesTest.java b/exercises/practice/dominoes/src/test/java/DominoesTest.java index 76f2e4931..d1570eb77 100644 --- a/exercises/practice/dominoes/src/test/java/DominoesTest.java +++ b/exercises/practice/dominoes/src/test/java/DominoesTest.java @@ -1,4 +1,5 @@ import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import java.util.ArrayList; @@ -12,6 +13,7 @@ public class DominoesTest { @Test + @DisplayName("empty input = empty output") public void emtpyInputEmptyOutputTest() throws ChainNotFoundException { Dominoes dominoes = new Dominoes(); @@ -24,6 +26,7 @@ public void emtpyInputEmptyOutputTest() throws ChainNotFoundException { @Disabled("Remove to run test") @Test + @DisplayName("singleton input = singleton output") public void singletonInputSingletonOutput() throws ChainNotFoundException { Dominoes dominoes = new Dominoes(); @@ -37,6 +40,7 @@ public void singletonInputSingletonOutput() throws ChainNotFoundException { @Disabled("Remove to run test") @Test + @DisplayName("singleton that can't be chained") public void singletonCantBeChainedTest() { Dominoes dominoes = new Dominoes(); @@ -50,6 +54,7 @@ public void singletonCantBeChainedTest() { @Disabled("Remove to run test") @Test + @DisplayName("three elements") public void threeElementsTest() throws ChainNotFoundException { Dominoes dominoes = new Dominoes(); @@ -63,6 +68,7 @@ public void threeElementsTest() throws ChainNotFoundException { @Disabled("Remove to run test") @Test + @DisplayName("can reverse dominoes") public void canReverseDominoesTest() throws ChainNotFoundException { Dominoes dominoes = new Dominoes(); @@ -76,6 +82,7 @@ public void canReverseDominoesTest() throws ChainNotFoundException { @Disabled("Remove to run test") @Test + @DisplayName("can't be chained") public void cantBeChainedTest() { Dominoes dominoes = new Dominoes(); @@ -89,6 +96,7 @@ public void cantBeChainedTest() { @Disabled("Remove to run test") @Test + @DisplayName("disconnected - simple") public void disconnectedSimpleTest() { Dominoes dominoes = new Dominoes(); @@ -102,6 +110,7 @@ public void disconnectedSimpleTest() { @Disabled("Remove to run test") @Test + @DisplayName("disconnected - double loop") public void disconnectedDoubleLoopTest() { Dominoes dominoes = new Dominoes(); @@ -115,6 +124,7 @@ public void disconnectedDoubleLoopTest() { @Disabled("Remove to run test") @Test + @DisplayName("disconnected - single isolated") public void disconnectedSingleIsolatedTest() { Dominoes dominoes = new Dominoes(); @@ -128,6 +138,7 @@ public void disconnectedSingleIsolatedTest() { @Disabled("Remove to run test") @Test + @DisplayName("need backtrack") public void needBacktrackTest() throws ChainNotFoundException { Dominoes dominoes = new Dominoes(); @@ -142,6 +153,7 @@ public void needBacktrackTest() throws ChainNotFoundException { @Disabled("Remove to run test") @Test + @DisplayName("separate loops") public void separateLoopsTest() throws ChainNotFoundException { Dominoes dominoes = new Dominoes(); @@ -156,6 +168,7 @@ public void separateLoopsTest() throws ChainNotFoundException { @Disabled("Remove to run test") @Test + @DisplayName("nine elements") public void nineElementsTest() throws ChainNotFoundException { Dominoes dominoes = new Dominoes(); Domino[] dominoesArray = {new Domino(1, 2), new Domino(5, 3), new Domino(3, 1), @@ -170,6 +183,7 @@ public void nineElementsTest() throws ChainNotFoundException { @Disabled("Remove to run test") @Test + @DisplayName("separate three-domino loops") public void separateThreeDominoLoopsTest() { Dominoes dominoes = new Dominoes(); diff --git a/exercises/practice/etl/src/test/java/EtlTest.java b/exercises/practice/etl/src/test/java/EtlTest.java index c25755690..4ef9292aa 100644 --- a/exercises/practice/etl/src/test/java/EtlTest.java +++ b/exercises/practice/etl/src/test/java/EtlTest.java @@ -1,4 +1,5 @@ import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import java.util.Arrays; @@ -14,6 +15,7 @@ public class EtlTest { private final Etl etl = new Etl(); @Test + @DisplayName("single letter") public void testTransformOneValue() { Map> old = new HashMap>() { { @@ -34,6 +36,7 @@ public void testTransformOneValue() { @Disabled("Remove to run test") @Test + @DisplayName("single score with multiple letters") public void testTransformMoreValues() { Map> old = new HashMap>() { { @@ -58,6 +61,7 @@ public void testTransformMoreValues() { @Disabled("Remove to run test") @Test + @DisplayName("multiple scores with multiple letters") public void testMoreKeys() { Map> old = new HashMap>() { { @@ -82,6 +86,7 @@ public void testMoreKeys() { @Disabled("Remove to run test") @Test + @DisplayName("multiple scores with differing numbers of letters") public void testFullDataset() { Map> old = new HashMap>() { { diff --git a/exercises/practice/flatten-array/src/test/java/FlattenerTest.java b/exercises/practice/flatten-array/src/test/java/FlattenerTest.java index a9f94e280..2a5fb4323 100644 --- a/exercises/practice/flatten-array/src/test/java/FlattenerTest.java +++ b/exercises/practice/flatten-array/src/test/java/FlattenerTest.java @@ -1,5 +1,6 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import static java.util.Arrays.asList; @@ -17,6 +18,7 @@ public void setUp() { } @Test + @DisplayName("empty") public void testEmpty() { assertThat(flattener.flatten(emptyList())) .isEmpty(); @@ -24,6 +26,7 @@ public void testEmpty() { @Disabled("Remove to run test") @Test + @DisplayName("no nesting") public void testFlatListIsPreserved() { assertThat(flattener.flatten(asList(0, '1', "two"))) .containsExactly(0, '1', "two"); @@ -31,6 +34,7 @@ public void testFlatListIsPreserved() { @Disabled("Remove to run test") @Test + @DisplayName("flattens a nested array") public void testNestedList() { assertThat(flattener.flatten(singletonList(emptyList()))) .isEmpty(); @@ -38,6 +42,7 @@ public void testNestedList() { @Disabled("Remove to run test") @Test + @DisplayName("flattens array with just integers present") public void testASingleLevelOfNestingWithNoNulls() { assertThat(flattener.flatten(asList(1, asList('2', 3, 4, 5, "six", "7"), 8))) .containsExactly(1, '2', 3, 4, 5, "six", "7", 8); @@ -45,6 +50,7 @@ public void testASingleLevelOfNestingWithNoNulls() { @Disabled("Remove to run test") @Test + @DisplayName("5 level nesting") public void testFiveLevelsOfNestingWithNoNulls() { assertThat(flattener.flatten( asList(0, @@ -59,6 +65,7 @@ public void testFiveLevelsOfNestingWithNoNulls() { @Disabled("Remove to run test") @Test + @DisplayName("6 level nesting") public void testSixLevelsOfNestingWithNoNulls() { assertThat(flattener.flatten( asList("one", @@ -71,6 +78,7 @@ public void testSixLevelsOfNestingWithNoNulls() { @Disabled("Remove to run test") @Test + @DisplayName("null values are omitted from the final result") public void testNullValuesAreOmitted() { assertThat(flattener.flatten(asList("1", "two", null))) .containsExactly("1", "two"); @@ -78,6 +86,7 @@ public void testNullValuesAreOmitted() { @Disabled("Remove to run test") @Test + @DisplayName("consecutive null values at the front of the list are omitted from the final result") public void testConsecutiveNullValuesAtFrontOfListAreOmitted() { assertThat(flattener.flatten(asList(null, null, 3))) .containsExactly(3); @@ -85,6 +94,7 @@ public void testConsecutiveNullValuesAtFrontOfListAreOmitted() { @Disabled("Remove to run test") @Test + @DisplayName("consecutive null values in the middle of the list are omitted from the final result") public void testConsecutiveNullValuesInMiddleOfListAreOmitted() { assertThat(flattener.flatten(asList(1, null, null, "4"))) .containsExactly(1, "4"); @@ -92,6 +102,7 @@ public void testConsecutiveNullValuesInMiddleOfListAreOmitted() { @Disabled("Remove to run test") @Test + @DisplayName("6 level nest list with null values") public void testSixLevelsOfNestingWithNulls() { assertThat(flattener.flatten( asList("0", @@ -107,6 +118,7 @@ public void testSixLevelsOfNestingWithNulls() { @Disabled("Remove to run test") @Test + @DisplayName("all values in nested list are null") public void testNestedListsFullOfNullsOnly() { assertThat(flattener.flatten( asList(null,