Skip to content

Commit

Permalink
[test] Per mockito/mockito#2779, fixed test case
Browse files Browse the repository at this point in the history
  • Loading branch information
hazendaz committed Apr 7, 2023
1 parent 56f90ba commit eac0433
Showing 1 changed file with 5 additions and 3 deletions.
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2010-2022 the original author or authors.
Copyright 2010-2023 the original author or authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -29,8 +29,10 @@
<import resource="classpath:org/mybatis/spring/sample/config/applicationContext-infrastructure.xml"/>

<!-- Mock for preventing bean creation error -->
<bean id="userMapper" class="org.mockito.Mockito" factory-method="mock">
<constructor-arg value="org.mybatis.spring.sample.mapper.UserMapper"/>
<bean id="userMapper" name="userMapper" class="org.mockito.Mockito" factory-method="mock">
<constructor-arg>
<value type="java.lang.Class">org.mybatis.spring.sample.mapper.UserMapper</value>
</constructor-arg>
</bean>

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

0 comments on commit eac0433

Please sign in to comment.