Skip to content

Commit aeacc89

Browse files
authored
Merge pull request #799 from hazendaz/master
Mockito 5.2.0, add byte buddy latest, jacoco latest, pom cleanup
2 parents 0a68787 + cbdaf82 commit aeacc89

File tree

3 files changed

+25
-209
lines changed

3 files changed

+25
-209
lines changed

pom.xml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
</distributionManagement>
100100

101101
<properties>
102-
<clirr.comparisonVersion>1.3.2</clirr.comparisonVersion>
102+
<clirr.comparisonVersion>2.1.0</clirr.comparisonVersion>
103103
<findbugs.onlyAnalyze>org.mybatis.spring.*,org.mybatis.spring.mapper.*,org.mybatis.spring.support.*,org.mybatis.spring.transaction.*</findbugs.onlyAnalyze>
104104
<gcu.product>Spring</gcu.product>
105105
<osgi.import>org.springframework.batch.*;resolution:=optional,*</osgi.import>
@@ -116,11 +116,14 @@
116116

117117
<junit.version>5.9.2</junit.version>
118118

119-
<!-- Keep this setting until mybatis-parent 37 official released -->
120-
<maven.compiler.parameters>true</maven.compiler.parameters>
121-
122119
<!-- Reproducible Builds -->
123120
<project.build.outputTimestamp>1670546764</project.build.outputTimestamp>
121+
122+
<!-- TODO: Remove this after mybatis-parent 38 -->
123+
<jacoco.plugin>0.8.9</jacoco.plugin>
124+
125+
<!-- Set byte buddy to experimental -->
126+
<net.bytebuddy.experimental>true</net.bytebuddy.experimental>
124127
</properties>
125128

126129
<dependencies>
@@ -233,7 +236,7 @@
233236
<dependency>
234237
<groupId>org.mockito</groupId>
235238
<artifactId>mockito-core</artifactId>
236-
<version>4.9.0</version>
239+
<version>5.2.0</version>
237240
<scope>test</scope>
238241
</dependency>
239242

@@ -314,6 +317,18 @@
314317
<scope>test</scope>
315318
</dependency>
316319

320+
<dependency>
321+
<groupId>net.bytebuddy</groupId>
322+
<artifactId>byte-buddy</artifactId>
323+
<version>1.14.4</version>
324+
<scope>test</scope>
325+
</dependency>
326+
<dependency>
327+
<groupId>net.bytebuddy</groupId>
328+
<artifactId>byte-buddy-agent</artifactId>
329+
<version>1.14.4</version>
330+
<scope>test</scope>
331+
</dependency>
317332
</dependencies>
318333

319334
<build>

src/changes/changes.xml

Lines changed: 0 additions & 201 deletions
This file was deleted.

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)