Skip to content

Commit

Permalink
Merge pull request #737 from jesperancinha/test-33991
Browse files Browse the repository at this point in the history
doesn't work yet
  • Loading branch information
jesperancinha authored Dec 1, 2024
2 parents 4b62161 + 06a1e77 commit 0a8ec11
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@
<artifactId>jeorg-spring-flash-3-2</artifactId>

<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>6.2.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>6.2.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.jesperancinha.console</groupId>
<artifactId>consolerizer</artifactId>
Expand Down Expand Up @@ -131,4 +141,14 @@
</plugins>
</build>

<repositories>
<repository>
<id>spring-snapshots</id>
<name>Spring Snapshots</name>
<url>https://repo.spring.io/snapshot</url>
<releases>
<enabled>false</enabled>
</releases>
</repository>
</repositories>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
Expand Down

0 comments on commit 0a8ec11

Please sign in to comment.