Skip to content

Commit 97904b5

Browse files
committed
[test] Remove dirties context annotation
mockito seems to trip on this with its auto mocking since 4.10.0. Trying to see if this is really necessary on this test...
1 parent c928467 commit 97904b5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,12 @@
2121
import org.mybatis.spring.sample.domain.User;
2222
import org.mybatis.spring.sample.service.BarService;
2323
import org.springframework.beans.factory.annotation.Autowired;
24-
import org.springframework.test.annotation.DirtiesContext;
2524
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;
2625

2726
/**
2827
* Example of basic MyBatis-Spring integration usage with a manual DAO implementation that subclasses
2928
* SqlSessionDaoSupport.
3029
*/
31-
@DirtiesContext
3230
@SpringJUnitConfig(locations = { "classpath:org/mybatis/spring/sample/config/applicationContext-sqlsession.xml" })
3331
class SampleSqlSessionTest {
3432

0 commit comments

Comments
 (0)