![]() |
|
|
|
|
Issue Type:
|
Bug
|
|
Affects Versions:
|
10-beta, 9.4 |
|
Assignee:
|
Simone Giannecchini
|
|
Components:
|
coverage |
|
Created:
|
25/Jun/13 8:04 AM
|
|
Description:
|
I'm seeing intermittant test failure and success on the org.geotools.image.io.ImageIOExtTest#testDefaultFileOutputStreams method.
I assume this has something to do with caching in the JVM or javax.imageio.ImageIO utility class and the way Surefire/JUnit randomizes tests.
to reproduce:
{{
cd modules\library\coverage\
mvn test -Dtest=ImageIOExtTest
}}
sometimes gives
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.geotools.image.io.ImageIOExtTest
Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.562 sec <<< FAILURE!
Results :
Failed tests: testDefaultFileOutputStreams(org.geotools.image.io.ImageIOExtTest): expected:<class javax.imageio.stream.MemoryCacheImageOutputStream> but was:<class javax.imageio.stream.FileCacheImageOutputStream>
Tests run: 3, Failures: 1, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.921s
[INFO] Finished at: Tue Jun 25 14:46:48 CEST 2013
[INFO] Final Memory: 10M/247M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project gt-coverage: There are test failures.
and other times gives
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.geotools.image.io.ImageIOExtTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.547 sec
Results :
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.922s
[INFO] Finished at: Tue Jun 25 14:45:55 CEST 2013
[INFO] Final Memory: 10M/247M
[INFO] ------------------------------------------------------------------------
running just the failing method using mvn test -q -Dtest=ImageIOExtTest#testDefaultFileOutputStreams it never fails.
|
|
Environment:
|
Windows XP 32bit, Oracle JDK 1.7.0_25
|
|
Project:
|
GeoTools
|
|
Priority:
|
Minor
|
|
Reporter:
|
Mark Prins
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel