change unit test name for apache commons unit test given one object and alt method
This commit is contained in:
parent
efdb3f65b3
commit
9d66171dd5
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue