From b5e2c5ec1c1f96218ebc1f5adca5f71d8f44045e Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 20 Feb 2018 19:58:26 +0000 Subject: [PATCH] Polish --- .../cache/CacheAutoConfigurationTests.java | 3 ++- .../boot/convert/package-info.java | 20 +++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 spring-boot-project/spring-boot/src/main/java/org/springframework/boot/convert/package-info.java diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/cache/CacheAutoConfigurationTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/cache/CacheAutoConfigurationTests.java index aae5e05b67..f77524e8f6 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/cache/CacheAutoConfigurationTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/cache/CacheAutoConfigurationTests.java @@ -316,7 +316,8 @@ public class CacheAutoConfigurationTests { cacheManager).getPropertyValue("defaultCacheConfig"); assertThat(redisCacheConfiguration.getTtl()) .isEqualTo(java.time.Duration.ofSeconds(30)); - assertThat(redisCacheConfiguration.getKeyPrefix()).contains("bar"); + assertThat(redisCacheConfiguration.getKeyPrefixFor("")) + .isEqualTo("bar"); }); } diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/convert/package-info.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/convert/package-info.java new file mode 100644 index 0000000000..793bb88aa0 --- /dev/null +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/convert/package-info.java @@ -0,0 +1,20 @@ +/* + * Copyright 2012-2018 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * Support for type conversion. + */ +package org.springframework.boot.convert;