Polish
Closes gh-7403
This commit is contained in:
@@ -30,7 +30,7 @@ import org.springframework.jdbc.support.SQLExceptionTranslator;
|
||||
import org.springframework.jdbc.support.SQLStateSQLExceptionTranslator;
|
||||
|
||||
/**
|
||||
* Transforms {@link java.sql.SQLException} into a Spring-specific @{link
|
||||
* Transforms {@link java.sql.SQLException} into a Spring-specific {@link
|
||||
* DataAccessException}.
|
||||
*
|
||||
* @author Lukas Eder
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package org.springframework.boot.autoconfigure.condition;
|
||||
|
||||
import org.junit.After;
|
||||
import org.junit.Test;
|
||||
|
||||
import org.springframework.boot.cloud.CloudPlatform;
|
||||
@@ -33,6 +34,13 @@ public class ConditionalOnCloudPlatformTests {
|
||||
|
||||
private final AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
|
||||
|
||||
@After
|
||||
public void cleanUp() {
|
||||
if (this.context != null) {
|
||||
this.context.close();
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void outcomeWhenCloudfoundryPlatformNotPresentShouldNotMatch()
|
||||
throws Exception {
|
||||
|
||||
@@ -577,7 +577,7 @@ public class WebMvcAutoConfigurationTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void welcomePageMappingDoesNotHandleRequestThatDoNotAcceptTextHtml()
|
||||
public void welcomePageMappingDoesNotHandleRequestsThatDoNotAcceptTextHtml()
|
||||
throws Exception {
|
||||
load("spring.resources.static-locations:classpath:/welcome-page/");
|
||||
assertThat(this.context.getBeansOfType(WelcomePageHandlerMapping.class))
|
||||
|
||||
Reference in New Issue
Block a user