From 42192fdca8bbad47e7d64e6172c0d91cf96745a9 Mon Sep 17 00:00:00 2001 From: Jeremy Landis Date: Sun, 30 Nov 2025 13:58:20 -0500 Subject: [PATCH 1/2] [javadocs] Fix javadoc on test side did not address any warnings as a lot of them and those only affect us --- .../java/org/mybatis/spring/filter/xml/XmlScanFilterTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/mybatis/spring/filter/xml/XmlScanFilterTest.java b/src/test/java/org/mybatis/spring/filter/xml/XmlScanFilterTest.java index f0fd88e5fd..fa756e6833 100644 --- a/src/test/java/org/mybatis/spring/filter/xml/XmlScanFilterTest.java +++ b/src/test/java/org/mybatis/spring/filter/xml/XmlScanFilterTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2024 the original author or authors. + * Copyright 2010-2025 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. @@ -24,7 +24,7 @@ import org.springframework.context.support.ClassPathXmlApplicationContext; /** - * test the function of excludeFilters in + * test the function of excludeFilters in . */ public class XmlScanFilterTest { From 274c6fcecb0e08beb02bd1badb660e8eedf1f74e Mon Sep 17 00:00:00 2001 From: Jeremy Landis Date: Sun, 30 Nov 2025 13:58:44 -0500 Subject: [PATCH 2/2] [tests] Junit 5 stylings --- src/test/java/org/mybatis/spring/SqlSessionTemplateTest.java | 3 ++- src/test/java/org/mybatis/spring/filter/ScanFilterTest.java | 4 ++-- .../java/org/mybatis/spring/filter/xml/XmlScanFilterTest.java | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/test/java/org/mybatis/spring/SqlSessionTemplateTest.java b/src/test/java/org/mybatis/spring/SqlSessionTemplateTest.java index f89e7777c9..1118c4d90d 100644 --- a/src/test/java/org/mybatis/spring/SqlSessionTemplateTest.java +++ b/src/test/java/org/mybatis/spring/SqlSessionTemplateTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2024 the original author or authors. + * Copyright 2010-2025 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. @@ -34,6 +34,7 @@ // tests basic usage and implementation only // MapperFactoryBeanTest handles testing the transactional functions in SqlSessionTemplate +// Method is public as extended by other test classes outside this package public class SqlSessionTemplateTest extends AbstractMyBatisSpringTest { private static SqlSession sqlSessionTemplate; diff --git a/src/test/java/org/mybatis/spring/filter/ScanFilterTest.java b/src/test/java/org/mybatis/spring/filter/ScanFilterTest.java index 1cb984c765..4c83d076eb 100644 --- a/src/test/java/org/mybatis/spring/filter/ScanFilterTest.java +++ b/src/test/java/org/mybatis/spring/filter/ScanFilterTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2024 the original author or authors. + * Copyright 2010-2025 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. @@ -31,7 +31,7 @@ /** * test the function of excludeFilters in @MapperScan */ -public class ScanFilterTest { +class ScanFilterTest { private AnnotationConfigApplicationContext applicationContext; diff --git a/src/test/java/org/mybatis/spring/filter/xml/XmlScanFilterTest.java b/src/test/java/org/mybatis/spring/filter/xml/XmlScanFilterTest.java index fa756e6833..ccecf80fd7 100644 --- a/src/test/java/org/mybatis/spring/filter/xml/XmlScanFilterTest.java +++ b/src/test/java/org/mybatis/spring/filter/xml/XmlScanFilterTest.java @@ -26,7 +26,7 @@ /** * test the function of excludeFilters in . */ -public class XmlScanFilterTest { +class XmlScanFilterTest { private ClassPathXmlApplicationContext applicationContext;