Hi Ian,
I've started up my local sql server windows machine, using the microsoft
drivers
like the build server, and the situation is even worse... I get
all SQLServerTemporalFilterOnlineTest
failing (they do not on the build server) with a time shift of 12 hours if
I run them
along with the rest of the tests:

junit.framework.AssertionFailedError: expected:<2009-06-29 03:12:41.0> but
was:<2009-06-28 15:12:41.0>
at junit.framework.Assert.fail(Assert.java:57)
at junit.framework.Assert.failNotEquals(Assert.java:329)
at junit.framework.Assert.assertEquals(Assert.java:78)
at junit.framework.Assert.assertEquals(Assert.java:86)
at junit.framework.TestCase.assertEquals(TestCase.java:253)
at
org.geotools.jdbc.JDBCTemporalFilterOnlineTest.assertDatesMatch(JDBCTemporalFilterOnlineTest.java:86)
at
org.geotools.jdbc.JDBCTemporalFilterOnlineTest.assertDatesMatch(JDBCTemporalFilterOnlineTest.java:70)
at
org.geotools.jdbc.JDBCTemporalFilterOnlineTest.testEndedBy(JDBCTemporalFilterOnlineTest.java:162)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at junit.framework.TestCase.runTest(TestCase.java:176)
at junit.framework.TestCase.runBare(TestCase.java:141)
at junit.framework.TestResult$1.protect(TestResult.java:122)
at junit.framework.TestResult.runProtected(TestResult.java:142)
at junit.framework.TestResult.run(TestResult.java:125)
at junit.framework.TestCase.run(TestCase.java:129)
at org.geotools.test.OnlineTestCase.run(OnlineTestCase.java:123)
at junit.framework.TestSuite.runTest(TestSuite.java:255)
at junit.framework.TestSuite.run(TestSuite.java:250)
at
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)

This is interesting however, since I don't get the timezone tests failing
like on the build server, only
SQLServerDateOnlineTest.testFiltersByDate:

junit.framework.AssertionFailedError: wrong number of records for GMT+12:00
expected:<2> but was:<1>
at junit.framework.Assert.fail(Assert.java:57)
at junit.framework.Assert.failNotEquals(Assert.java:329)
at junit.framework.Assert.assertEquals(Assert.java:78)
at junit.framework.Assert.assertEquals(Assert.java:234)
at junit.framework.TestCase.assertEquals(TestCase.java:401)
at
org.geotools.jdbc.JDBCDateOnlineTest.testFiltersByDate(JDBCDateOnlineTest.java:70)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at junit.framework.TestCase.runTest(TestCase.java:176)
at junit.framework.TestCase.runBare(TestCase.java:141)
at junit.framework.TestResult$1.protect(TestResult.java:122)
at junit.framework.TestResult.runProtected(TestResult.java:142)
at junit.framework.TestResult.run(TestResult.java:125)
at junit.framework.TestCase.run(TestCase.java:129)
at org.geotools.test.OnlineTestCase.run(OnlineTestCase.java:123)
at junit.framework.TestSuite.runTest(TestSuite.java:255)
at junit.framework.TestSuite.run(TestSuite.java:250)
at
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)

Hmmm.. makes me wonder if it's some state carrying over between the
tests... indeed if I run
SQLServerTemporalFilterOnlineTest alone, it's an "all pass"

Cheers
Andrea


On Sat, Jun 13, 2015 at 6:37 PM, Andrea Aime <[email protected]>
wrote:

> Hi Ian,
> thanks for looking into it. Maybe in parallel Jody/Torben can tell us if
> there is anything "special" about the
> sqlserver used for the tests, like special settings, and/or the timezone
> of the OS running it?
>
> Also, as far as I can see from the build, it's using the Microsoft SQL
> driver, instead of JTDS (which would
> be otherwise the default)
>
> Cheers
> Andrea
>
>
> On Sat, Jun 13, 2015 at 6:20 PM, Ian Turton <[email protected]> wrote:
>
>> Looks like my work, I don't have a windows box to test on any longer but
>> I'll have a look at the code and see what I can see.
>>
>> Ian
>>
>> On Sat, 13 Jun 2015 4:12 pm Andrea Aime <[email protected]>
>> wrote:
>>
>>> Hi,
>>> it seems we still have 3 date related failures in sql server:
>>>
>>> Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.921 sec 
>>> <<< FAILURE! - in org.geotools.data.sqlserver.SQLServerDateOnlineTest
>>> testFiltersByDate(org.geotools.data.sqlserver.SQLServerDateOnlineTest)  
>>> Time elapsed: 0.33 sec  <<< FAILURE!
>>> junit.framework.AssertionFailedError: wrong number of records for Central 
>>> European Time expected:<2> but was:<1>
>>>     at junit.framework.Assert.fail(Assert.java:57)
>>>     at junit.framework.Assert.failNotEquals(Assert.java:329)
>>>     at junit.framework.Assert.assertEquals(Assert.java:78)
>>>     at junit.framework.Assert.assertEquals(Assert.java:234)
>>>     at junit.framework.TestCase.assertEquals(TestCase.java:401)
>>>     at 
>>> org.geotools.jdbc.JDBCDateOnlineTest.testFiltersByDate(JDBCDateOnlineTest.java:70)
>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>     at 
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>     at 
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>     at java.lang.reflect.Method.invoke(Method.java:606)
>>>     at junit.framework.TestCase.runTest(TestCase.java:176)
>>>     at junit.framework.TestCase.runBare(TestCase.java:141)
>>>     at junit.framework.TestResult$1.protect(TestResult.java:122)
>>>     at junit.framework.TestResult.runProtected(TestResult.java:142)
>>>     at junit.framework.TestResult.run(TestResult.java:125)
>>>     at junit.framework.TestCase.run(TestCase.java:129)
>>>     at org.geotools.test.OnlineTestCase.run(OnlineTestCase.java:123)
>>>     at junit.framework.TestSuite.runTest(TestSuite.java:255)
>>>     at junit.framework.TestSuite.run(TestSuite.java:250)
>>>     at 
>>> org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
>>>     at 
>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
>>>     at 
>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>     at 
>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
>>>     at 
>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
>>>     at 
>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
>>>     at 
>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>
>>>
>>> Running org.geotools.data.sqlserver.SQLServerTimeZoneCETDateOnlineTest
>>> [ d <= Sun Jun 28 00:00:00 CEST 2009 ]
>>> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.18 sec 
>>> <<< FAILURE! - in 
>>> org.geotools.data.sqlserver.SQLServerTimeZoneCETDateOnlineTest
>>> testFiltersByDate(org.geotools.data.sqlserver.SQLServerTimeZoneCETDateOnlineTest)
>>>   Time elapsed: 0.179 sec  <<< FAILURE!
>>> junit.framework.AssertionFailedError: wrong number of records for Central 
>>> European Time expected:<2> but was:<1>
>>>     at junit.framework.Assert.fail(Assert.java:57)
>>>     at junit.framework.Assert.failNotEquals(Assert.java:329)
>>>     at junit.framework.Assert.assertEquals(Assert.java:78)
>>>     at junit.framework.Assert.assertEquals(Assert.java:234)
>>>     at junit.framework.TestCase.assertEquals(TestCase.java:401)
>>>     at 
>>> org.geotools.jdbc.JDBCTimeZoneDateOnlineTest.testFiltersByDate(JDBCTimeZoneDateOnlineTest.java:39)
>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>     at 
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>     at 
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>     at java.lang.reflect.Method.invoke(Method.java:606)
>>>     at junit.framework.TestCase.runTest(TestCase.java:176)
>>>     at junit.framework.TestCase.runBare(TestCase.java:141)
>>>     at junit.framework.TestResult$1.protect(TestResult.java:122)
>>>     at junit.framework.TestResult.runProtected(TestResult.java:142)
>>>     at junit.framework.TestResult.run(TestResult.java:125)
>>>     at junit.framework.TestCase.run(TestCase.java:129)
>>>     at org.geotools.test.OnlineTestCase.run(OnlineTestCase.java:123)
>>>     at junit.framework.TestSuite.runTest(TestSuite.java:255)
>>>     at junit.framework.TestSuite.run(TestSuite.java:250)
>>>     at 
>>> org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
>>>     at 
>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
>>>     at 
>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>     at 
>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
>>>     at 
>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
>>>     at 
>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
>>>     at 
>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>
>>> Running 
>>> org.geotools.data.sqlserver.SQLServerTimeZoneGMTMinus14DateOnlineTest
>>> [ d <= Sun Jun 28 00:00:00 GMT+14:00 2009 ]
>>> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.187 sec 
>>> <<< FAILURE! - in 
>>> org.geotools.data.sqlserver.SQLServerTimeZoneGMTMinus14DateOnlineTest
>>> testFiltersByDate(org.geotools.data.sqlserver.SQLServerTimeZoneGMTMinus14DateOnlineTest)
>>>   Time elapsed: 0.186 sec  <<< FAILURE!
>>> junit.framework.AssertionFailedError: wrong number of records for GMT+14:00 
>>> expected:<2> but was:<1>
>>>     at junit.framework.Assert.fail(Assert.java:57)
>>>     at junit.framework.Assert.failNotEquals(Assert.java:329)
>>>     at junit.framework.Assert.assertEquals(Assert.java:78)
>>>     at junit.framework.Assert.assertEquals(Assert.java:234)
>>>     at junit.framework.TestCase.assertEquals(TestCase.java:401)
>>>     at 
>>> org.geotools.jdbc.JDBCTimeZoneDateOnlineTest.testFiltersByDate(JDBCTimeZoneDateOnlineTest.java:39)
>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>     at 
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>     at 
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>     at java.lang.reflect.Method.invoke(Method.java:606)
>>>     at junit.framework.TestCase.runTest(TestCase.java:176)
>>>     at junit.framework.TestCase.runBare(TestCase.java:141)
>>>     at junit.framework.TestResult$1.protect(TestResult.java:122)
>>>     at junit.framework.TestResult.runProtected(TestResult.java:142)
>>>     at junit.framework.TestResult.run(TestResult.java:125)
>>>     at junit.framework.TestCase.run(TestCase.java:129)
>>>     at org.geotools.test.OnlineTestCase.run(OnlineTestCase.java:123)
>>>     at junit.framework.TestSuite.runTest(TestSuite.java:255)
>>>     at junit.framework.TestSuite.run(TestSuite.java:250)
>>>     at 
>>> org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
>>>     at 
>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
>>>     at 
>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>>>     at 
>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
>>>     at 
>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
>>>     at 
>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
>>>     at 
>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>
>>>
>>> Ian, does this ring any bell?
>>>
>>> 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 Poggio alle Viti 1187
>>> 55054  Massarosa (LU)
>>> Italy
>>> phone: +39 0584 962313
>>> fax: +39 0584 1660272
>>> mob: +39  339 8844549
>>>
>>> http://www.geo-solutions.it
>>> http://twitter.com/geosolutions_it
>>>
>>> *AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*
>>>
>>> Le informazioni contenute in questo messaggio di posta elettronica e/o
>>> nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
>>> loro utilizzo è consentito esclusivamente al destinatario del messaggio,
>>> per le finalità indicate nel messaggio stesso. Qualora riceviate questo
>>> messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
>>> darcene notizia via e-mail e di procedere alla distruzione del messaggio
>>> stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
>>> divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
>>> utilizzarlo per finalità diverse, costituisce comportamento contrario ai
>>> principi dettati dal D.Lgs. 196/2003.
>>>
>>>
>>>
>>> The information in this message and/or attachments, is intended solely
>>> for the attention and use of the named addressee(s) and may be confidential
>>> or proprietary in nature or covered by the provisions of privacy act
>>> (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
>>> Code).Any use not in accord with its purpose, any disclosure, reproduction,
>>> copying, distribution, or either dissemination, either whole or partial, is
>>> strictly forbidden except previous formal approval of the named
>>> addressee(s). If you are not the intended recipient, please contact
>>> immediately the sender by telephone, fax or e-mail and delete the
>>> information in this message that has been received in error. The sender
>>> does not give any warranty or accept liability as the content, accuracy or
>>> completeness of sent messages and accepts no responsibility  for changes
>>> made after they were sent or for other risks which arise as a result of
>>> e-mail transmission, viruses, etc.
>>>
>>> -------------------------------------------------------
>>>
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> GeoTools-Devel mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/geotools-devel
>>>
>>
>
>
> --
> ==
> 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 Poggio alle Viti 1187
> 55054  Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax: +39 0584 1660272
> mob: +39  339 8844549
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> *AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*
>
> Le informazioni contenute in questo messaggio di posta elettronica e/o
> nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
> loro utilizzo è consentito esclusivamente al destinatario del messaggio,
> per le finalità indicate nel messaggio stesso. Qualora riceviate questo
> messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
> darcene notizia via e-mail e di procedere alla distruzione del messaggio
> stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
> divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
> utilizzarlo per finalità diverse, costituisce comportamento contrario ai
> principi dettati dal D.Lgs. 196/2003.
>
>
>
> The information in this message and/or attachments, is intended solely for
> the attention and use of the named addressee(s) and may be confidential or
> proprietary in nature or covered by the provisions of privacy act
> (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
> Code).Any use not in accord with its purpose, any disclosure, reproduction,
> copying, distribution, or either dissemination, either whole or partial, is
> strictly forbidden except previous formal approval of the named
> addressee(s). If you are not the intended recipient, please contact
> immediately the sender by telephone, fax or e-mail and delete the
> information in this message that has been received in error. The sender
> does not give any warranty or accept liability as the content, accuracy or
> completeness of sent messages and accepts no responsibility  for changes
> made after they were sent or for other risks which arise as a result of
> e-mail transmission, viruses, etc.
>
> -------------------------------------------------------
>



-- 
==
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 Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.



The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility  for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

-------------------------------------------------------
------------------------------------------------------------------------------
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to