From bece347987b0273a1228b7349172b85667853ce0 Mon Sep 17 00:00:00 2001 From: Mortitz Halbritter Date: Thu, 23 Mar 2023 22:53:54 -0700 Subject: [PATCH] Polish --- .../runner/AbstractApplicationContextRunner.java | 2 +- .../boot/builder/SpringApplicationBuilder.java | 2 +- .../boot/jdbc/DatabaseDriver.java | 16 +++++++++++----- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/runner/AbstractApplicationContextRunner.java b/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/runner/AbstractApplicationContextRunner.java index 82077b5d2d..2bd51c122c 100644 --- a/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/runner/AbstractApplicationContextRunner.java +++ b/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/runner/AbstractApplicationContextRunner.java @@ -253,7 +253,7 @@ public abstract class AbstractApplicationContextRunner getUrlPrefixes() { return Collections.singleton("sap"); } + }, /** @@ -248,14 +250,18 @@ public enum DatabaseDriver { return name().toLowerCase(Locale.ENGLISH); } - protected boolean matchProductName(String productName) { - return this.productName != null && this.productName.equalsIgnoreCase(productName); - } - + /** + * Return the url prefixes of this driver. + * @return the url prefixes + */ protected Collection getUrlPrefixes() { return Collections.singleton(name().toLowerCase(Locale.ENGLISH)); } + protected boolean matchProductName(String productName) { + return this.productName != null && this.productName.equalsIgnoreCase(productName); + } + /** * Return the driver class name. * @return the class name or {@code null}