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
System.setProperty( "derby.storage.tempDirectory", dbDir.getAbsolutePath() );
			System.setProperty( "derby.stream.error.file", 
					new File( dbDir, "error.log").getAbsolutePath() );
		}
		catch ( Exception e )
		{
			logger.log( Level.WARNING, "SampleDB: cannot resolve local file path for plugin:  " 
					+ Constants.PLUGIN_ID,	e );
		}
	}
	/**
	 * Creates a new JDBC connection to the embedded sample database. 
	 * @see org.eclipse.birt.report.data.oda.jdbc.IConnectionFactory#getConnection(java.lang.String, java.lang.String, java.util.Properties)
	 */
	public Connection getConnection(String driverClass, String url, Properties connectionProperties)
			throws SQLException
	{
		if ( ! driverClass.equals( Constants.DRIVER_CLASS) )
		{
			
			logger.log( Level.SEVERE, "Unexpected driverClass: " + driverClass );
			throw new SQLException("Unexpected driverClass " + driverClass);
		}
		if ( ! url.equals(url) )
		{
			
			logger.log( Level.WARNING, "Unexpected url: " + url );
			throw new SQLException("Classic Models Inc. Sample Database Driver does not recognize url: " + driverClass);
		}
		String dbUrl = getDbUrl();