Commit ec83d974 authored by Johnny Lim's avatar Johnny Lim Committed by Andy Wilkinson

Remove a duplicate test

Closes gh-5615
parent d138c1a6
...@@ -68,19 +68,6 @@ public class DevToolsDataSourceAutoConfigurationTests { ...@@ -68,19 +68,6 @@ public class DevToolsDataSourceAutoConfigurationTests {
verify(dataSource, times(0)).getConnection(); 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 @Test
public void nonEmbeddedInMemoryDatabaseConfiguredWithDriverIsShutDown() public void nonEmbeddedInMemoryDatabaseConfiguredWithDriverIsShutDown()
throws SQLException { throws SQLException {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment