Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Commit

Permalink
Remove unneeded private method
Browse files Browse the repository at this point in the history
  • Loading branch information
vladmihalcea committed Apr 17, 2014
1 parent 288c8cd commit 5486774
Showing 1 changed file with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,12 @@ public void init() {
}

@Test
public void test() throws SQLException {
public void testOpenCloseConnections() throws SQLException {
for (int i = 0; i < MAX_ITERATIONS; i++) {
openCloseConnection();
Timer.Context context = timer.time();
getDataSource().getConnection().close();
context.stop();
}
logReporter.report();
}

private void openCloseConnection() throws SQLException {
Timer.Context context = timer.time();
Connection connection = getDataSource().getConnection();
connection.close();
context.stop();
}
}

0 comments on commit 5486774

Please sign in to comment.