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
*/
package org.eclipse.birt.report.data.oda.sampledb;
import java.io.File;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.Properties;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
 * Provides JDBC connection to the Derby database embedded in this plugin.
 */
import org.eclipse.birt.core.framework.IBundle;
import org.eclipse.birt.core.framework.Platform;
import org.eclipse.birt.report.data.oda.jdbc.IConnectionFactory;
import org.eclipse.birt.report.data.oda.jdbc.JDBCDriverManager;
import org.eclipse.datatools.connectivity.oda.OdaException;
public class SampleDBJDBCConnectionFactory implements IConnectionFactory
{
	static private final Logger logger = Logger.getLogger( SampleDBJDBCConnectionFactory.class.getName() );
	
	public static class Constants
	{
		
		
		public static final String DRIVER_CLASS = "org.eclipse.birt.report.data.oda.sampledb.Driver";