From 30263137c48da22767ba7b773d8c256c0c67bdc6 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Thu, 18 Jun 2020 10:55:44 +0200 Subject: [PATCH] Suppress warnings in Gradle build --- .../jdbc/core/support/JdbcBeanDefinitionReaderTests.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/spring-jdbc/src/test/java/org/springframework/jdbc/core/support/JdbcBeanDefinitionReaderTests.java b/spring-jdbc/src/test/java/org/springframework/jdbc/core/support/JdbcBeanDefinitionReaderTests.java index 36ecd71bc4..f6452be3b1 100644 --- a/spring-jdbc/src/test/java/org/springframework/jdbc/core/support/JdbcBeanDefinitionReaderTests.java +++ b/spring-jdbc/src/test/java/org/springframework/jdbc/core/support/JdbcBeanDefinitionReaderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2019 the original author or authors. + * Copyright 2002-2020 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. @@ -35,10 +35,11 @@ import static org.mockito.Mockito.verify; /** * @author Rod Johnson */ -public class JdbcBeanDefinitionReaderTests { +class JdbcBeanDefinitionReaderTests { @Test - public void testValid() throws Exception { + @SuppressWarnings("deprecation") + void readBeanDefinitionFromMockedDataSource() throws Exception { String sql = "SELECT NAME AS NAME, PROPERTY AS PROPERTY, VALUE AS VALUE FROM T"; Connection connection = mock(Connection.class);