On Wed, Sep 19, 2018 at 4:02 PM Rémi Desgrange <remi.desgra...@fibrea.net>
wrote:

> Hi,
>
> I opened the PR because I will need your help ☺ :
>
> • I have _no_ idea how to test this, when I opened the test folder I said
> “ohhh that’s a lot of testfile, in which should I put my test?”
>

That's complicated... the test would be similar
to PostgisNGCreateDatabaseOnlineTest or PostgisNGDataStoreFactoryOnlineTest,
but those two run on the same fixture file,
$HOME/.geotools/postgis.properties, and I believe for your case a separate
file containing
a different set of connection params would be needed, eg.., a
$HOME/.geotools/postgis-ssl.properties
(you'll have to override the getFixtureId() method I believe).


> • I have also no idea how to run 1 test with maven. I setup intellij with
> maven and run “mvn test” but it took ages to run. So, I would like to test
> only the test about postgresql/JDBC.
>

Go to the command line and build with maven in the module you're interested
in changing (e.g. modules/plugin/jdbc/jdbc-postgis)
If you do that, remember that database test run only if:

   - The -Ponline profile is active
   - The fixture file I was talking about above is present and properly
   configured

 PR is here https://github.com/geotools/geotools/pull/2048
>

Checked and added a few comments

Cheers
Andrea

==

GeoServer Professional Services from the experts! Visit http://goo.gl/it488V
for more information. == Ing. Andrea Aime @geowolf Technical Lead
GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39
0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549
http://www.geo-solutions.it http://twitter.com/geosolutions_it
------------------------------------------------------- *Con riferimento
alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 -
Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni
circostanza inerente alla presente email (il suo contenuto, gli eventuali
allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i
destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per
errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le
sarei comunque grato se potesse darmene notizia. This email is intended
only for the person or entity to which it is addressed and may contain
information that is privileged, confidential or otherwise protected from
disclosure. We remind that - as provided by European Regulation 2016/679
“GDPR” - copying, dissemination or use of this e-mail or the information
herein by anyone other than the intended recipient is prohibited. If you
have received this email by mistake, please notify us immediately by
telephone or e-mail.*
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to