public void TestDBCP() { var props = new Properties(); props.Put("driverClassName", SupportDatabaseService.DRIVER); props.Put("url", SupportDatabaseService.FULLURL); props.Put("username", SupportDatabaseService.DBUSER); props.Put("password", SupportDatabaseService.DBPWD); var configDB = new ConfigurationDBRef(); configDB.SetDatabaseDriver(SupportDatabaseService.DbDriverFactoryNative); configDB.SetDataSourceFactory(props, typeof(SupportDataSourceFactory).Name); configDB.ConnectionLifecycle = ConnectionLifecycleEnum.POOLED; configDB.LRUCache = 100; var configuration = SupportConfigFactory.GetConfiguration(); configuration.AddDatabaseReference("MyDB", configDB); _epService = EPServiceProviderManager.GetDefaultProvider(configuration); _epService.Initialize(); if (InstrumentationHelper.ENABLED) { InstrumentationHelper.StartTest(_epService, this.GetType(), this.GetType().FullName); } RunAssertion(); }