Skip to content

Commit

Permalink
Revert "[tests] Figured mockito out, was hidden in xml (wasn't expect…
Browse files Browse the repository at this point in the history
…ing that)"

This reverts commit 67417b3.
  • Loading branch information
hazendaz committed Apr 7, 2023
1 parent d520290 commit 56f90ba
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2010-2023 the original author or authors.
Copyright 2010-2022 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,7 +29,9 @@
<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" />
<bean id="userMapper" class="org.mockito.Mockito" factory-method="mock">
<constructor-arg value="org.mybatis.spring.sample.mapper.UserMapper"/>
</bean>

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

0 comments on commit 56f90ba

Please sign in to comment.