From ec83d97443f55e1257a8879311d052215d8db162 Mon Sep 17 00:00:00 2001 From: Johnny Lim Date: Wed, 6 Apr 2016 17:20:52 +0900 Subject: [PATCH] Remove a duplicate test Closes gh-5615 --- .../DevToolsDataSourceAutoConfigurationTests.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/autoconfigure/DevToolsDataSourceAutoConfigurationTests.java b/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/autoconfigure/DevToolsDataSourceAutoConfigurationTests.java index 51c9735743..8e5a711e7c 100644 --- a/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/autoconfigure/DevToolsDataSourceAutoConfigurationTests.java +++ b/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/autoconfigure/DevToolsDataSourceAutoConfigurationTests.java @@ -68,19 +68,6 @@ public class DevToolsDataSourceAutoConfigurationTests { verify(dataSource, times(0)).getConnection(); } - @Test - public void nonEmbeddedInMemoryDatabaseIsShutDown() throws SQLException { - ConfigurableApplicationContext context = createContextWithDriver("org.h2.Driver", - DataSourceConfiguration.class); - DataSource dataSource = context.getBean(DataSource.class); - Connection connection = mock(Connection.class); - given(dataSource.getConnection()).willReturn(connection); - Statement statement = mock(Statement.class); - given(connection.createStatement()).willReturn(statement); - context.close(); - verify(statement).execute("SHUTDOWN"); - } - @Test public void nonEmbeddedInMemoryDatabaseConfiguredWithDriverIsShutDown() throws SQLException {