[
https://issues.apache.org/jira/browse/JENA-1175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15277733#comment-15277733
]
Alessandro Seganti commented on JENA-1175:
------------------------------------------
Were you successful?
I think that I found a way for doing a test dependent on the local timezone
(using SimpleDateFormat). I will try to do a pull request this afternoon with
this.
> TestFunctions.exprSprintf_05 is timezone senstive.
> --------------------------------------------------
>
> Key: JENA-1175
> URL: https://issues.apache.org/jira/browse/JENA-1175
> Project: Apache Jena
> Issue Type: Bug
> Affects Versions: Jena 3.1.0
> Reporter: Andy Seaborne
>
> {noformat}
> Running org.apache.jena.sparql.expr.TS_ExprTests
> run: 1255, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.277 sec <<<
> FAILURE!
> in org.apache.jena.sparql.expr.TS_Expr
> exprSprintf_05(org.apache.jena.sparql.expr.TestFunctions) Time elapsed:
> 0.006 sec <<< FAILURE!
> java.lang.AssertionError: expected:<"10 14,2005"> but was:<"10 15,2005">
> at org.junit.Assert.fail(Assert.java:88)
> at org.junit.Assert.failNotEquals(Assert.java:834)
> at org.junit.Assert.assertEquals(Assert.java:118)
> at org.junit.Assert.assertEquals(Assert.java:144)
> at org.apache.jena.sparql.expr.TestFunctions.test(TestFunctions.java:270)
> at
> org.apache.jena.sparql.expr.TestFunctions.exprSprintf_05(TestFunctions.java:82)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)