test(manager-api): clean test runtime warnings

This commit is contained in:
Tyke Chen
2026-07-22 16:41:44 +08:00
parent f47f3b050b
commit 942d55118b
2 changed files with 7 additions and 0 deletions
@@ -22,6 +22,7 @@ import java.util.function.BiFunction;
import org.apache.ibatis.binding.MapperMethod;
import org.apache.ibatis.executor.BatchResult;
import org.apache.ibatis.logging.nologging.NoLoggingImpl;
import org.apache.ibatis.mapping.MappedStatement;
import org.apache.ibatis.session.ExecutorType;
import org.apache.ibatis.session.SqlSession;
@@ -184,6 +185,10 @@ class BaseServiceImplTest {
}
private static class TestService extends BaseServiceImpl<TestMapper, TestEntity> {
private TestService() {
log = new NoLoggingImpl(TestService.class.getName());
}
@Override
protected String getSqlStatement(SqlMethod sqlMethod) {
return switch (sqlMethod) {