Skip to content

Commit 56f90ba

Browse files
committed
Revert "[tests] Figured mockito out, was hidden in xml (wasn't expecting that)"
This reverts commit 67417b3.
1 parent d520290 commit 56f90ba

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/test/java/org/mybatis/spring/sample/config/applicationContext-sqlsession.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
4-
Copyright 2010-2023 the original author or authors.
4+
Copyright 2010-2022 the original author or authors.
55
66
Licensed under the Apache License, Version 2.0 (the "License");
77
you may not use this file except in compliance with the License.
@@ -29,7 +29,9 @@
2929
<import resource="classpath:org/mybatis/spring/sample/config/applicationContext-infrastructure.xml"/>
3030

3131
<!-- Mock for preventing bean creation error -->
32-
<bean id="userMapper" class="org.mockito.Mockito" factory-method="mock" />
32+
<bean id="userMapper" class="org.mockito.Mockito" factory-method="mock">
33+
<constructor-arg value="org.mybatis.spring.sample.mapper.UserMapper"/>
34+
</bean>
3335

3436
<!-- Classic DAO pattern built with an interface and an implementation. -->
3537
<bean id="userDao" class="org.mybatis.spring.sample.dao.UserDaoImpl" autowire="byType" />

0 commit comments

Comments
 (0)