BAEL-6482 Code for the Matching Null With Mockito article
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user