Bug 124096 sampledb properties should not be modified by users
steps to reproduce: - create a new data source using the sample database - click on Finish, then go to edit it by double click on it again - change Database URL to "invalid" - change User Name to "invalid" - click on Test Connection expected behavior: - error message is thrown out. actual behavior: - got "connection successful".
data/org.eclipse.birt.report.data.oda.sampledb/src/org/eclipse/birt/report/data/oda/sampledb/SampleDBJDBCConnectionFactory.java
public static final String DRIVER_URL = "jdbc:classicmodels:sampledb";
		
		
		public static final String PLUGIN_ID="org.eclipse.birt.report.data.oda.sampledb";
	}
	
	private static final String SAMPLE_DB_JAR_FILE="BirtSample.jar";
	private static final String SAMPLE_DB_NAME="BirtSample";
	private static final String SAMPLE_DB_HOME_DIR="db";
	private static final String DERBY_DRIVER_CLASS="org.apache.derby.jdbc.EmbeddedDriver";
	private static final String SAMPLE_DB_SCHEMA="ClassicModels";
	private static String dbUrl;
	static
	{
		
		
		
		try
		{
			
						
			String driverHome = getHomeDir();
	    	
			File dbDir = new File( driverHome, SAMPLE_DB_HOME_DIR );
			File dbFile = new File (dbDir, SAMPLE_DB_JAR_FILE);
			dbUrl = "jdbc:derby:jar:(" + dbFile.getAbsolutePath() + ")" + SAMPLE_DB_NAME;
			logger.log( Level.INFO, "SampleDB driver loaded. Url=" + dbUrl);
			
			System.setProperty( "derby.system.home", dbDir.getAbsolutePath() );