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