Merge pull request #5615 from Johnny Lim

* gh-5615:
  Remove a duplicate test
pull/5663/merge
Andy Wilkinson 9 years ago
commit 0f6b76cf7b

@ -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 {

Loading…
Cancel
Save