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}