diff --git a/core-java-modules/core-java-13/src/test/java/com/baeldung/switchExpression/SwitchExpressionsUnitTest.java b/core-java-modules/core-java-13/src/test/java/com/baeldung/switchExpression/SwitchExpressionsUnitTest.java index 00f42813b4..bb9250f000 100644 --- a/core-java-modules/core-java-13/src/test/java/com/baeldung/switchExpression/SwitchExpressionsUnitTest.java +++ b/core-java-modules/core-java-13/src/test/java/com/baeldung/switchExpression/SwitchExpressionsUnitTest.java @@ -14,7 +14,7 @@ public class SwitchExpressionsUnitTest { @Test @SuppressWarnings ("preview") - public void switchExpression() { + public void whenSwitchingOverMonthJune_thenWillReturn3() { var month = JUNE; @@ -30,7 +30,7 @@ public class SwitchExpressionsUnitTest { @Test @SuppressWarnings ("preview") - public void switchExpressionWithYieldKeyword() { + public void whenSwitchingOverMonthAugust_thenWillReturn24() { var month = AUGUST; var result = switch (month) { @@ -48,7 +48,7 @@ public class SwitchExpressionsUnitTest { @Test @SuppressWarnings ("preview") - public void switchStatementWithReturnInsideBlock() { + public void whenSwitchingOverMonthJanuary_thenWillReturn3() { Function func = (month) -> { switch (month) { @@ -62,7 +62,7 @@ public class SwitchExpressionsUnitTest { @Test @SuppressWarnings ("preview") - public void switchExpressionWithAllCasesCovered() { + public void whenSwitchingOverMonthAugust_thenWillReturn2() { var month = AUGUST; var result = switch (month) {