1 24 25 package org.objectweb.cjdbc.scenario.raidb1.driver; 26 27 import java.sql.Connection ; 28 29 import org.objectweb.cjdbc.scenario.templates.Raidb1Template; 30 import org.objectweb.cjdbc.scenario.tools.testlet.AbstractTestLet; 31 import org.objectweb.cjdbc.scenario.tools.testlet.CreateTableTestLet; 32 33 40 public class CreateTableScenario extends Raidb1Template 41 { 42 47 public void testCreateTableCaseInSensitive() throws Exception 48 { 49 Connection con = getCJDBCConnection(); 50 CreateTableTestLet let = new CreateTableTestLet(con); 51 let.set(AbstractTestLet.VIRTUAL_DATABASE,mainVdb); 52 let.set(AbstractTestLet.TABLE_NAME,"uSsAmi"); 53 let.set(AbstractTestLet.IGNORE_CASE,"true"); 54 let.execute(); 55 } 56 57 62 public void testCreateTableCaseSensitive() throws Exception 63 { 64 Connection con = getCJDBCConnection(); 65 CreateTableTestLet let = new CreateTableTestLet(con); 66 let.set(AbstractTestLet.VIRTUAL_DATABASE,mainVdb); 67 let.set(AbstractTestLet.TABLE_NAME,"uSsAmi"); 68 let.set(AbstractTestLet.IGNORE_CASE,"false"); 69 let.execute(); 70 } 71 72 77 public void testCreateTableRepeated() throws Exception 78 { 79 Connection con = getCJDBCConnection(); 80 CreateTableTestLet let = new CreateTableTestLet(con); 81 let.set(AbstractTestLet.VIRTUAL_DATABASE,mainVdb); 82 let.set(AbstractTestLet.TABLE_NAME,"uSsAmi"); 83 let.set(AbstractTestLet.IGNORE_CASE,"false"); 84 let.set(AbstractTestLet.ITERATION,"100"); 85 let.execute(); 86 } 87 } 88 | Popular Tags |