Changing test method names to conform to standard
This commit is contained in:
parent
0ef184239f
commit
9b69056ced
@ -14,7 +14,7 @@ public class SwitchExpressionsUnitTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
@SuppressWarnings ("preview")
|
@SuppressWarnings ("preview")
|
||||||
public void switchExpression() {
|
public void whenSwitchingOverMonthJune_thenWillReturn3() {
|
||||||
|
|
||||||
var month = JUNE;
|
var month = JUNE;
|
||||||
|
|
||||||
@ -30,7 +30,7 @@ public class SwitchExpressionsUnitTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
@SuppressWarnings ("preview")
|
@SuppressWarnings ("preview")
|
||||||
public void switchExpressionWithYieldKeyword() {
|
public void whenSwitchingOverMonthAugust_thenWillReturn24() {
|
||||||
var month = AUGUST;
|
var month = AUGUST;
|
||||||
|
|
||||||
var result = switch (month) {
|
var result = switch (month) {
|
||||||
@ -48,7 +48,7 @@ public class SwitchExpressionsUnitTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
@SuppressWarnings ("preview")
|
@SuppressWarnings ("preview")
|
||||||
public void switchStatementWithReturnInsideBlock() {
|
public void whenSwitchingOverMonthJanuary_thenWillReturn3() {
|
||||||
|
|
||||||
Function<Month, Integer> func = (month) -> {
|
Function<Month, Integer> func = (month) -> {
|
||||||
switch (month) {
|
switch (month) {
|
||||||
@ -62,7 +62,7 @@ public class SwitchExpressionsUnitTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
@SuppressWarnings ("preview")
|
@SuppressWarnings ("preview")
|
||||||
public void switchExpressionWithAllCasesCovered() {
|
public void whenSwitchingOverMonthAugust_thenWillReturn2() {
|
||||||
var month = AUGUST;
|
var month = AUGUST;
|
||||||
|
|
||||||
var result = switch (month) {
|
var result = switch (month) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user