1 24 25 package org.objectweb.cjdbc.scenario.horizontal; 26 27 import java.sql.Connection ; 28 import java.sql.ResultSet ; 29 import java.sql.Statement ; 30 31 import org.objectweb.cjdbc.scenario.templates.HorizontalTemplate; 32 import org.objectweb.cjdbc.scenario.tools.ScenarioUtility; 33 34 40 public class HorizontalWithRecoveryScenario extends HorizontalTemplate 41 { 42 43 49 public void testSetUp() throws Exception 50 { 51 Connection con = getCJDBCConnection("25322"); 52 Statement statement = con.createStatement(); 53 ResultSet rs = statement.executeQuery("Select * from document"); 54 System.out.println(ScenarioUtility.convertResultSet(rs)); 55 assertNotNull("ResultSet before failure is null", rs); 56 } 57 } 58 | Popular Tags |