File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
slf4j-mock-common/src/main/java/org/simplify4u/slf4jmock Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 23
23
import java .util .HashMap ;
24
24
import java .util .Map ;
25
25
26
+ import static org .mockito .Mockito .CALLS_REAL_METHODS ;
26
27
import static org .mockito .Mockito .mock ;
27
28
import static org .mockito .Mockito .withSettings ;
28
29
@@ -43,7 +44,7 @@ private static Logger createNewLoggerProxy(String name) {
43
44
return (Logger ) Proxy .newProxyInstance (Thread .currentThread ().getContextClassLoader (),
44
45
new Class <?>[]{Logger .class , ProxyMock .class },
45
46
new MockInvocationHandler (name , () ->
46
- mock (SimpleLogger .class , withSettings ().spiedInstance (new SimpleLogger (name )).stubOnly ())
47
+ mock (SimpleLogger .class , withSettings ().spiedInstance (new SimpleLogger (name )).defaultAnswer ( CALLS_REAL_METHODS ). stubOnly ())
47
48
)
48
49
);
49
50
}
You can’t perform that action at this time.
0 commit comments