]> source.dussan.org Git - sonarqube.git/commit
Fix stability of tests depending on order of execution
authorSimon Brandhof <simon.brandhof@gmail.com>
Thu, 3 Apr 2014 12:05:03 +0000 (14:05 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Thu, 3 Apr 2014 12:05:12 +0000 (14:05 +0200)
commitb26b05106fb21421b2994dc4f782174deea28b84
tree091c59ed0321718cac347d73e179b5d6674be82c
parentf5c17aba00cd5e775c9144f6f0e6eefc2a8f3d9d
Fix stability of tests depending on order of execution

Default timezone should not be changed by tests because DateUtils keeps instances of SimpleDateFormat in ThreadLocalContext. These instances are executed during the first call, so we can't guarantee which tz is used.
plugins/sonar-core-plugin/pom.xml
plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/issue/notification/NewIssuesEmailTemplateTest.java
sonar-core/src/test/java/org/sonar/core/i18n/DefaultI18nTest.java
sonar-server/src/test/java/org/sonar/server/startup/ServerMetadataPersisterTest.java
sonar-ws-client/src/test/java/org/sonar/wsclient/internal/HttpRequestFactoryTest.java
sonar-ws-client/src/test/java/org/sonar/wsclient/services/AbstractQueryTest.java