From: Tony O. <to...@co...> - 2003-08-22 06:27:59
|
Out of necessity I've made changes to the MockDatabaseMetaData class and added implementation for a number of methods..... getDatabaseProductName()); getDatabaseProductVersion()); getDriverVersion()); getDriverMajorVersion()); getDriverMinorVersion()); getCatalogTerm()); getSchemaTerm()); getProcedureTerm()); getMaxColumnsInTable()); getMaxColumnsInSelect()); getMaxColumnNameLength()); getDriverName()); getURL()); getUserName()); getSearchStringEscape()); getSQLKeywords()); getNumericFunctions()); getStringFunctions()); getTimeDateFunctions()); getSystemFunctions()); I'm happy and keen to contribute these changes to the project but did not see any link or suggestions on the home page that tells me how to contribute or what standards to follow. These methods were simple to implement however I did provided default values for each of these properties which means a user of the mock object doesn't necessarily have to run the setup methods. If that is considered bad form, I'll gladly remove the defaults. If required to be able to contribute, I'm happy to implement more methods than those listed above, those were just the first ones I needed to use for my application. Additionally, I want to add a setup method that will cause a SQLException to be thrown if accessing the getDatabaseProductName method which will allow me to accomplish 100% code coverage of a particular area of my code. Is such a method acceptable? I appreciate the help that has been given me on this list lately, I'm quite keen to become involved but have stuck to the non dynamic mock objects because they work a little better for me at the moment. I'm sure I can be persuaded as time goes on.... thanks Tony |