Skip to content

Commit eac0433

Browse files
committed
[test] Per mockito/mockito#2779, fixed test case
1 parent 56f90ba commit eac0433

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 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-2022 the original author or authors.
4+
Copyright 2010-2023 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,8 +29,10 @@
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">
33-
<constructor-arg value="org.mybatis.spring.sample.mapper.UserMapper"/>
32+
<bean id="userMapper" name="userMapper" class="org.mockito.Mockito" factory-method="mock">
33+
<constructor-arg>
34+
<value type="java.lang.Class">org.mybatis.spring.sample.mapper.UserMapper</value>
35+
</constructor-arg>
3436
</bean>
3537

3638
<!-- Classic DAO pattern built with an interface and an implementation. -->

0 commit comments

Comments
 (0)