: package/project/source folder?  If it is in the main tree: the unit
: tests require mysql-connector.jar and assume you have a database at:
: jdbc:mysql://localhost/solrtestsql with user=solr and password=solr.
: Any suggestions on how this should be handled or structured.

i havne't had a chance to look at SOLR-103 yet, but generally speaking a
unit test ins't a unit test if it relies on on external components -- that
would make it an integration test (or a system test depending on where you
draw your lines)

the way to unit test something like this would be with a MockJdbc
connection, so you can verify that the individual statements you think you
are executing are really getting executed -- this has the added benefit of
not falling prey to any quirks that may exist in a particular DB
implementation (or JDBC driver).




-Hoss

Reply via email to