01: package org.dbbrowser;
02:
03: import java.io.File;
04:
05: import org.dbbrowser.db.engine.model.filter.CompoundFilterTest;
06: import org.dbbrowser.db.engine.model.filter.SimpleFilterTest;
07: import org.dbbrowser.db.engine.queryengine.MySQLDBQueryEngineTest;
08: import org.dbbrowser.db.engine.queryengine.Oracle9iDBQueryEngineTest;
09: import org.dbbrowser.db.engine.rawsqlengine.MySQLGenericRawSQLEngineAutoCommitOffTest;
10: import org.dbbrowser.db.engine.rawsqlengine.MySQLGenericRawSQLEngineAutoCommitOnTest;
11: import org.dbbrowser.db.engine.rawsqlengine.OracleGenericRawSQLEngineAutoCommitOffTest;
12: import org.dbbrowser.db.engine.rawsqlengine.OracleGenericRawSQLEngineAutoCommitOnTest;
13: import org.dbbrowser.db.engine.updateengine.GenericDBUpdateEngineTest;
14: import org.dbbrowser.drivermanager.ConnectionInfoTest;
15: import org.dbbrowser.drivermanager.DBBrowserDriverManagerTest;
16: import org.dbbrowser.security.AsymmetricEncryptionEngineTest;
17: import org.dbbrowser.ui.MessageFormatterTest;
18: import org.dbbrowser.ui.helper.KeyBindingsSerializerTest;
19:
20: import infrastructure.logging.Log;
21: import infrastructure.propertymanager.PropertyManagementException;
22: import infrastructure.propertymanager.PropertyManager;
23: import junit.framework.Test;
24: import junit.framework.TestSuite;
25:
26: public class DBBrowserTests {
27: public static Test suite() {
28: //Initialize the property manager
29: try {
30: PropertyManager.getInstance().initializeProperties(
31: new File("src/properties/db browser.properties"));
32: } catch (PropertyManagementException exc) {
33: System.err
34: .println("PropertyManager property file not found at location - src/properties/db browser.properties");
35: System.exit(-1);
36: }
37:
38: Log.getInstance().initialize(
39: "src/properties/log4jproperties.xml");
40: TestSuite suite = new TestSuite(
41: "All tests for DB Browser project");
42:
43: //JUnit tests
44: /*suite.addTest(new TestSuite(DBBrowserDriverManagerTest.class));
45: suite.addTest(new TestSuite(ConnectionInfoTest.class));
46: suite.addTest(new TestSuite(Oracle9iDBQueryEngineTest.class));
47: suite.addTest(new TestSuite(MySQLDBQueryEngineTest.class));
48: suite.addTest(new TestSuite(GenericDBUpdateEngineTest.class));
49: suite.addTest(new TestSuite(OracleGenericRawSQLEngineAutoCommitOnTest.class));
50: suite.addTest(new TestSuite(OracleGenericRawSQLEngineAutoCommitOffTest.class));
51: suite.addTest(new TestSuite(MySQLGenericRawSQLEngineAutoCommitOffTest.class));
52: suite.addTest(new TestSuite(MySQLGenericRawSQLEngineAutoCommitOnTest.class));*/
53: //suite.addTest(new TestSuite(SimpleFilterTest.class));
54: //suite.addTest(new TestSuite(CompoundFilterTest.class));
55: //suite.addTest(new TestSuite(MessageFormatterTest.class));
56: //suite.addTest(new TestSuite(Oracle9iDBQueryEngineTest.class));
57: //suite.addTest(new TestSuite(MySQLDBQueryEngineTest.class));
58: suite.addTest(new TestSuite(ConnectionInfoTest.class));
59: suite.addTest(new TestSuite(
60: AsymmetricEncryptionEngineTest.class));
61:
62: return suite;
63: }
64: }
|