BAEL-6482 Code for the Matching Null With Mockito article

This commit is contained in:
thibault.faure
2023-06-06 23:00:55 +02:00
parent fec7001cbd
commit d928abe033
3 changed files with 60 additions and 0 deletions
@@ -0,0 +1,9 @@
package com.baeldung.nullmatcher;
class Helper {
String concat(String a, String b) {
return a + b;
}
}
@@ -0,0 +1,11 @@
package com.baeldung.nullmatcher;
class Main {
Helper helper = new Helper();
String methodUnderTest() {
return helper.concat("Baeldung", null);
}
}