You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by ja...@apache.org on 2013/05/08 12:31:36 UTC
[2/2] git commit: fixed test in ldpath-functions-date
fixed test in ldpath-functions-date
Project: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/commit/5fe2a271
Tree: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/tree/5fe2a271
Diff: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/diff/5fe2a271
Branch: refs/heads/develop
Commit: 5fe2a271db41e80e364507cc22c4c69a6b805946
Parents: 575c30c
Author: Jakob Frank <ja...@apache.org>
Authored: Wed May 8 10:23:25 2013 +0200
Committer: Jakob Frank <ja...@apache.org>
Committed: Wed May 8 10:23:25 2013 +0200
----------------------------------------------------------------------
.../model/functions/date/DateFunctionsTest.java | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/5fe2a271/libraries/ldpath/ldpath-functions-date/src/test/java/org/apache/marmotta/ldpath/model/functions/date/DateFunctionsTest.java
----------------------------------------------------------------------
diff --git a/libraries/ldpath/ldpath-functions-date/src/test/java/org/apache/marmotta/ldpath/model/functions/date/DateFunctionsTest.java b/libraries/ldpath/ldpath-functions-date/src/test/java/org/apache/marmotta/ldpath/model/functions/date/DateFunctionsTest.java
index 8470462..69dc472 100644
--- a/libraries/ldpath/ldpath-functions-date/src/test/java/org/apache/marmotta/ldpath/model/functions/date/DateFunctionsTest.java
+++ b/libraries/ldpath/ldpath-functions-date/src/test/java/org/apache/marmotta/ldpath/model/functions/date/DateFunctionsTest.java
@@ -48,7 +48,7 @@ public class DateFunctionsTest extends AbstractTestBase {
@Before
public void loadData() throws RepositoryException, RDFParseException, IOException {
final int delta = 60 * 60 * 24 * 365;
- now = new Date();
+ now = new Date(1000*(System.currentTimeMillis() / 1000));
first = new Date(now.getTime() - 1000l * delta);
uri = repository.getValueFactory().createURI(NSS.get("ex") + now.getTime());