diff --git a/jeorg-spring/jeorg-spring-flash/jeorg-spring-flash-set-3/jeorg-spring-flash-3-2/pom.xml b/jeorg-spring/jeorg-spring-flash/jeorg-spring-flash-set-3/jeorg-spring-flash-3-2/pom.xml index cd577f06b..9c954fc38 100644 --- a/jeorg-spring/jeorg-spring-flash/jeorg-spring-flash-set-3/jeorg-spring-flash-3-2/pom.xml +++ b/jeorg-spring/jeorg-spring-flash/jeorg-spring-flash-set-3/jeorg-spring-flash-3-2/pom.xml @@ -12,6 +12,11 @@ jeorg-spring-flash-3-2 + + org.springframework + spring-context + 6.2.1-SNAPSHOT + org.jesperancinha.console consolerizer @@ -131,4 +136,14 @@ + + + spring-snapshots + Spring Snapshots + https://repo.spring.io/snapshot + + false + + + \ No newline at end of file diff --git a/jeorg-spring/jeorg-spring-flash/jeorg-spring-flash-set-3/jeorg-spring-flash-3-2/src/test/java/org/jesperancinha/std/flash32/rowcallbackhandler/SpringFlash32LauncherTemplateTest.java b/jeorg-spring/jeorg-spring-flash/jeorg-spring-flash-set-3/jeorg-spring-flash-3-2/src/test/java/org/jesperancinha/std/flash32/rowcallbackhandler/SpringFlash32LauncherTemplateTest.java index cdbd2af9a..337741aed 100644 --- a/jeorg-spring/jeorg-spring-flash/jeorg-spring-flash-set-3/jeorg-spring-flash-3-2/src/test/java/org/jesperancinha/std/flash32/rowcallbackhandler/SpringFlash32LauncherTemplateTest.java +++ b/jeorg-spring/jeorg-spring-flash/jeorg-spring-flash-set-3/jeorg-spring-flash-3-2/src/test/java/org/jesperancinha/std/flash32/rowcallbackhandler/SpringFlash32LauncherTemplateTest.java @@ -9,6 +9,7 @@ import org.springframework.boot.test.mock.mockito.MockBean; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.core.RowCallbackHandler; +import org.springframework.test.context.bean.override.mockito.MockitoBean; import static org.assertj.core.api.Assertions.assertThat; import static org.mockito.ArgumentMatchers.any; @@ -19,8 +20,8 @@ @ExtendWith(MockitoExtension.class) class SpringFlash32LauncherTemplateTest { -// @MockitoBean // This doesn't work - @MockBean + //https://github.com/spring-projects/spring-framework/issues/33991 + @MockitoBean private JdbcTemplate jdbcTemplate; @Captor