slf4j-mock
slf4j-mock copied to clipboard
Library to easy mock request on sl4j-api
``` SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder] java.lang.ClassCastException: ch.qos.logback.classic.Logger cannot be cast to org.simplify4u.slf4jmock.ProxyMock at org.simplify4u.slf4jmock.mockito.LoggerAnnotationEngine.findLoggersMocks(LoggerAnnotationEngine.java:166) at org.simplify4u.slf4jmock.mockito.LoggerAnnotationEngine.process(LoggerAnnotationEngine.java:59) at org.mockito.MockitoAnnotations.openMocks(MockitoAnnotations.java:81) at org.mockito.internal.runners.DefaultInternalRunner$1$1.evaluate(DefaultInternalRunner.java:50) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) at...
Bumps `slf4j-1.version` from 1.7.36 to 2.0.13. Updates `org.slf4j:slf4j-api` from 1.7.36 to 2.0.13 Updates `org.slf4j:slf4j-simple` from 1.7.36 to 2.0.13 You can trigger a rebase of this PR by commenting `@dependabot rebase`....
Bumps [org.simplify4u:parent](https://github.com/s4u/parent) from 2.20.0 to 2.21.0. Release notes Sourced from org.simplify4u:parent's releases. v2.21.0 What's Changed :fire: New features Use maven-gpg-plugin for signing #206 Require Maven 3.6.3 as minimum for build...
Bumps [org.simplify4u:parent](https://github.com/s4u/parent) from 2.20.0 to 2.21.1. Release notes Sourced from org.simplify4u:parent's releases. v2.21.1 What's Changed :toolbox: Dependency updates Bump org.jacoco:jacoco-maven-plugin from 0.8.11 to 0.8.12 (#212) @dependabot Bump maven-plugin-plugin.version from 3.11.0...
Bumps `junit.version` from 5.10.2 to 5.10.3. Updates `org.junit.jupiter:junit-jupiter` from 5.10.2 to 5.10.3 Release notes Sourced from org.junit.jupiter:junit-jupiter's releases. JUnit 5.10.3 = Platform 1.10.3 + Jupiter 5.10.3 + Vintage 5.10.3 See...
With this PR the defaultAnswer for the defaultMock Spies ist changed to CALLS_REAL_METHOD. This is the same behaviour as when your create a spy with Mockito.spy(new SimpleLogger(name)). See issue https://github.com/s4u/slf4j-mock/issues/204
**Describe the bug** The DefaultMock Spies in LoggerMock are created with the default Answer RETURNS_DEFAULTS from Mockito. **To Reproduce** Create a Junit Test with slf4j2-mock binding to slf4j and a...
Bumps `slf4j-1.version` from 1.7.36 to 2.0.16. Updates `org.slf4j:slf4j-api` from 1.7.36 to 2.0.16 Updates `org.slf4j:slf4j-simple` from 1.7.36 to 2.0.16 Dependabot will resolve any conflicts with this PR as long as you...