Skip to content

Commit 0a098ef

Browse files
add displayname annotations to satellite
1 parent a0f584c commit 0a098ef

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

exercises/practice/satellite/src/test/java/SatelliteTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33

44
import java.util.List;
55
import org.junit.jupiter.api.Disabled;
6+
import org.junit.jupiter.api.DisplayName;
67
import org.junit.jupiter.api.Test;
78

89
public class SatelliteTest {
910
Satellite satellite = new Satellite();
1011

1112
@Test
13+
@DisplayName("Empty tree")
1214
public void emptyTree() {
1315
List<Character> preorder = List.of();
1416
List<Character> inorder = List.of();
@@ -22,6 +24,7 @@ public void emptyTree() {
2224

2325
@Disabled("Remove to run test")
2426
@Test
27+
@DisplayName("Tree with one item")
2528
public void treeWithOneItem() {
2629
List<Character> preorder = List.of('a');
2730
List<Character> inorder = List.of('a');
@@ -35,6 +38,7 @@ public void treeWithOneItem() {
3538

3639
@Disabled("Remove to run test")
3740
@Test
41+
@DisplayName("Tree with many items")
3842
public void treeWithManyItems() {
3943
List<Character> preorder = List.of('a', 'i', 'x', 'f', 'r');
4044
List<Character> inorder = List.of('i', 'a', 'f', 'x', 'r');
@@ -48,6 +52,7 @@ public void treeWithManyItems() {
4852

4953
@Disabled("Remove to run test")
5054
@Test
55+
@DisplayName("Reject traversals of different length")
5156
public void rejectTraversalsOfDifferentLengths() {
5257
List<Character> preorder = List.of('a', 'b');
5358
List<Character> inorder = List.of('b', 'a', 'r');
@@ -60,6 +65,7 @@ public void rejectTraversalsOfDifferentLengths() {
6065

6166
@Disabled("Remove to run test")
6267
@Test
68+
@DisplayName("Reject inconsistent traversals of same length")
6369
public void rejectInconsistentTraversalsOfSameLength() {
6470
List<Character> preorder = List.of('x', 'y', 'z');
6571
List<Character> inorder = List.of('a', 'b', 'c');
@@ -71,6 +77,7 @@ public void rejectInconsistentTraversalsOfSameLength() {
7177

7278
@Disabled("Remove to run test")
7379
@Test
80+
@DisplayName("Reject traversals with repeated items")
7481
public void rejectTraversalsWithRepeatedItems() {
7582
List<Character> preorder = List.of('a', 'b', 'a');
7683
List<Character> inorder = List.of('b', 'a', 'a');

0 commit comments

Comments
 (0)