Using the factory spi could work, i never thought of doing it that way.
The way i have it implemented now is just subclassing the root test case
with a few template methods for setting up all the data.

-Justin

Jody Garnett wrote:
> Justin Deoliveira wrote:
>> The idea of a datastore compliance test has been kicking around for some
>> time now. The idea is to create an abstract test case which tests all
>> aspects of the datastore api, and then subclass for each data store.
>>
>> Jody implemented such a test for memory data store some time back. I
>> ported the test to postgis and it cleared up a lot of bugs.
>>
>> As part of a recent experiment I have created such a test case, and have
>> three implementations: postgis, shapefile, and property.
>>
>> I would like to create a new module, lets call it "cite", and put all
>> the tests in there. My rational for the new module is that the tests are
>> less likey to get kicked out of the build as somoene is developing in a
>> module.
>>   
> To make this open ended we should allow a FactorySPI to define a 
> CITEFactory that returns a datastore with the correctly
> set up data set for the tests.  This way the construction of the test 
> data set would be close to the datastore being tested, and the CITE tests
> would be open ended for DB2 and Oracle to pass as the module maintainers 
> have ability.
>> Also having the tests in a single module gives us a quick way to tell
>> which modules are not compliant.
>>
>> What do people think?
>>   
> Sweet! I love it. Can we add memory data store to your list please?
> Cheers,
> Jody
> 
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Geotools-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
> 
> !DSPAM:1004,45183414137374820651628!
> 


-- 
Justin Deoliveira
[EMAIL PROTECTED]
The Open Planning Project
http://topp.openplans.org

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to