All JDBC JNDI tests appear to fail silently. I do not think they have 
ever worked. Setting skip.on.failure=false in the fixture file reveals 
this in Maven and Eclipse but only when running all tests for a jdbc module.

Who knows how these fixtures are supposed to work? Looking at 
JDBCJNDIDataSourceTest suggests Justin and Andrea (git blame) and 
Christian (@author) have contributed.

To see the failure in action with postgis, add skip.on.failure=false to 
~/.geotools/postgis.properties, then in Eclipse set a breakpoint at 
DataAccessFactory:435, and then Debug As JUnit Test the entire package 
org.geotools.data.postgis in src/test/java in gt-jdbc-postis.

Kind regards,
Ben.

On 03/07/15 10:44, Ben Caradoc-Davies wrote:
> And this test only fails if run with the full suite (for
> gt-jdbc-postgis) and skip.on.failure=false. Run by itself, it is
> silently disabled.
>
> On 03/07/15 10:04, Ben Caradoc-Davies wrote:
>> Torben,
>>
>> I compared the fixture on Jenkins to the one I use for postgis, and
>> found that PostgisJNDIDataSourceOnlineTest fails if and only if I set:
>> skip.on.failure=false
>>
>> I suspect that this test has been broken for a long time and the
>> JDBCTestSupport.connect failure was silently turning it off.
>>
>> In the Jenkins log:
>> java.io.IOException: Parameter host is required:Host
>>
>> Kind regards,
>> Ben.

-- 
Ben Caradoc-Davies <[email protected]>
Director
Transient Software Limited <http://transient.nz/>
New Zealand

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to