From 2f952fde6cf729cde0aa0c5b39dd532999d19f7a Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Mon, 25 Jun 2018 12:39:31 +0100 Subject: [PATCH] Polish --- .../endpoint/AbstractEndpointTests.java | 7 +--- .../endpoint/LiquibaseEndpointTests.java | 35 ++++++++++++++----- 2 files changed, 28 insertions(+), 14 deletions(-) diff --git a/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/AbstractEndpointTests.java b/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/AbstractEndpointTests.java index cf29cecf1d..73e0e76ee8 100644 --- a/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/AbstractEndpointTests.java +++ b/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/AbstractEndpointTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2016 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. @@ -66,14 +66,9 @@ public abstract class AbstractEndpointTests> { public void setup() { this.context = new AnnotationConfigApplicationContext(); this.context.register(JacksonAutoConfiguration.class, this.configClass); - configureEnvironment(this.context); this.context.refresh(); } - protected void configureEnvironment(AnnotationConfigApplicationContext context) { - - } - @After public void close() { if (this.context != null) { diff --git a/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/LiquibaseEndpointTests.java b/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/LiquibaseEndpointTests.java index fe15592b46..962c962884 100644 --- a/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/LiquibaseEndpointTests.java +++ b/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/LiquibaseEndpointTests.java @@ -25,6 +25,7 @@ import liquibase.integration.spring.SpringLiquibase; import org.junit.Test; import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; +import org.springframework.boot.autoconfigure.jdbc.EmbeddedDataSourceConfiguration; import org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration; import org.springframework.boot.test.util.EnvironmentTestUtils; import org.springframework.context.annotation.AnnotationConfigApplicationContext; @@ -46,14 +47,14 @@ public class LiquibaseEndpointTests extends AbstractEndpointTests