1 24 25 package org.objectweb.cjdbc.scenario.horizontal; 26 27 import java.sql.Connection ; 28 29 import org.objectweb.cjdbc.scenario.templates.HorizontalRAIDb1WithCacheTemplate; 30 import org.objectweb.cjdbc.scenario.tools.testlet.AbstractConnectionTestLet; 31 import org.objectweb.cjdbc.scenario.tools.testlet.UpdateTestLet; 32 33 38 public class DistributedRAIDb1WithCacheScenario 39 extends 40 HorizontalRAIDb1WithCacheTemplate 41 { 42 47 public void testSetup() throws Exception 48 { 49 Connection con = getCJDBCConnection("25322"); 50 new UpdateTestLet(con).execute(); 51 } 52 53 59 public void testUpdateInTransactionSetup() throws Exception 60 { 61 Connection con = getCJDBCConnection("25322"); 62 UpdateTestLet let = new UpdateTestLet(con); 63 let.set(AbstractConnectionTestLet.USE_TRANSACTIONS, "true"); 64 let.set(AbstractConnectionTestLet.USE_PREPARED_STATEMENT, "true"); 65 let.execute(); 66 } 67 } | Popular Tags |