1 25 package testsuite.simple; 26 27 import com.mysql.jdbc.MiniAdmin; 28 29 import testsuite.BaseTestCase; 30 31 36 public class MiniAdminTest extends BaseTestCase { 37 40 43 private static final String SHUTDOWN_PROP = "com.mysql.jdbc.testsuite.MiniAdminTest.runShutdown"; 44 45 48 54 public MiniAdminTest(String name) { 55 super(name); 56 } 57 58 61 66 public static void main(String [] args) { 67 junit.textui.TestRunner.run(MiniAdminTest.class); 68 } 69 70 78 public void testShutdown() throws Exception { 79 if (runTestIfSysPropDefined(SHUTDOWN_PROP)) { 80 new MiniAdmin(this.conn).shutdown(); 81 } 82 } 83 84 90 public void testUrlConstructor() throws Exception { 91 new MiniAdmin(dbUrl); 92 } 93 } 94 | Popular Tags |