Skip to content

Commit 39909d3

Browse files
committed
[test] Try adding mockito extension
trying to see if for some reason this is needed. really should not be using both but only change is mockito and code breaks. So maybe this is necessary now.
1 parent ffe0038 commit 39909d3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/java/org/mybatis/spring/sample/SampleSqlSessionTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
import static org.assertj.core.api.Assertions.assertThat;
1919

2020
import org.junit.jupiter.api.Test;
21+
import org.junit.jupiter.api.extension.ExtendWith;
22+
import org.mockito.junit.jupiter.MockitoExtension;
2123
import org.mybatis.spring.sample.domain.User;
2224
import org.mybatis.spring.sample.service.BarService;
2325
import org.springframework.beans.factory.annotation.Autowired;
@@ -28,6 +30,7 @@
2830
* Example of basic MyBatis-Spring integration usage with a manual DAO implementation that subclasses
2931
* SqlSessionDaoSupport.
3032
*/
33+
@ExtendWith(MockitoExtension.class)
3134
@DirtiesContext
3235
@SpringJUnitConfig(locations = { "classpath:org/mybatis/spring/sample/config/applicationContext-sqlsession.xml" })
3336
class SampleSqlSessionTest {

0 commit comments

Comments
 (0)