change unit test name for apache commons unit test given one object and alt method

This commit is contained in:
danielmcnally285 2023-10-31 20:19:54 +00:00
parent efdb3f65b3
commit 9d66171dd5
1 changed files with 2 additions and 2 deletions

View File

@ -51,8 +51,8 @@ public class ReturnFirstNonNullLazyEvaluateUnitTest {
}
@Test
public void givenTwoObjects_whenUsingApacheCommonsLang3_thenReturnFirstNonNull() {
Object object1 = methodA();
public void givenNullableObjectAndFallbackMethod_whenUsingApacheCommonsLang3_thenReturnFirstNonNull() {
Object object1 = null;
Object object = ObjectUtils.getIfNull(object1, this::methodB);
assertTrue(object != null);