Skip to content
This repository was archived by the owner on Jun 3, 2026. It is now read-only.

Commit 957295a

Browse files
committed
Better exception handling.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1638111 13f79535-47bb-0310-9956-ffa450edef68
1 parent a6e69b2 commit 957295a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/test/java/org/apache/commons/csv/CSVPrinterTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ private Connection geH2Connection() throws SQLException, ClassNotFoundException
222222
public void testJdbcPrinter() throws IOException, ClassNotFoundException, SQLException {
223223
final StringWriter sw = new StringWriter();
224224
final Connection connection = geH2Connection();
225-
setUpTable(connection);
226225
try {
226+
setUpTable(connection);
227227
final Statement stmt = connection.createStatement();
228228
final CSVPrinter printer = new CSVPrinter(sw, CSVFormat.DEFAULT);
229229
printer.printRecords(stmt.executeQuery("select ID, NAME from TEST"));
@@ -239,8 +239,8 @@ public void testJdbcPrinterWithResultSet() throws IOException, ClassNotFoundExce
239239
final StringWriter sw = new StringWriter();
240240
Class.forName("org.h2.Driver");
241241
final Connection connection = geH2Connection();
242-
setUpTable(connection);
243242
try {
243+
setUpTable(connection);
244244
@SuppressWarnings("resource")
245245
// Closed when the connection is closed.
246246
final Statement stmt = connection.createStatement();
@@ -262,8 +262,8 @@ public void testJdbcPrinterWithResultSetMetaData() throws IOException, ClassNotF
262262
final StringWriter sw = new StringWriter();
263263
Class.forName("org.h2.Driver");
264264
final Connection connection = geH2Connection();
265-
setUpTable(connection);
266265
try {
266+
setUpTable(connection);
267267
@SuppressWarnings("resource")
268268
// Closed when the connection is closed.
269269
final Statement stmt = connection.createStatement();

0 commit comments

Comments
 (0)