BAEL-4756 - Mockito MockSettings (#10423)

* BAEL-4706 - Spring Boot with Spring Batch

* BAEL-3948 - Fix test(s) in spring-batch which leaves repository.sqlite
changed

* BAEL-4736 - Convert JSONArray to List of Object using camel-jackson

* BAEL-4756 - Mockito MockSettings

Co-authored-by: Jonathan Cook <jcook@sciops.esa.int>
This commit is contained in:
Jonathan Cook
2021-01-17 11:39:53 +01:00
committed by GitHub
parent 1e2aa09bf7
commit b9c81b0ced
4 changed files with 86 additions and 0 deletions
@@ -0,0 +1,15 @@
package com.baeldung.mockito.mocksettings;
public abstract class AbstractCoffee {
protected String name;
protected AbstractCoffee(String name) {
this.name = name;
}
protected String getName() {
return name;
}
}
@@ -0,0 +1,10 @@
package com.baeldung.mockito.mocksettings;
public class SimpleService {
public SimpleService(SpecialInterface special) {
Runnable runnable = (Runnable) special;
runnable.run();
}
}
@@ -0,0 +1,5 @@
package com.baeldung.mockito.mocksettings;
public interface SpecialInterface {
}