summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.junit
diff options
context:
space:
mode:
authorTerry Parker <tparker@google.com>2015-10-22 15:29:04 -0700
committerTerry Parker <tparker@google.com>2015-10-22 15:29:11 -0700
commit2c70d183f539b9a696e9670f5752a5829a4efbba (patch)
tree00cdd8897980c4bc169f797f06bad7ea08083665 /org.eclipse.jgit.junit
parentd9e9015a0061efe96cae0c98225443abc5e88bbb (diff)
downloadjgit-2c70d183f539b9a696e9670f5752a5829a4efbba.tar.gz
jgit-2c70d183f539b9a696e9670f5752a5829a4efbba.zip
Restore TestRepository.getClock(), it is used by Gerrit/Gitiles
Change-Id: I88880f18998e33377c0c684cbd8007b5d27d76e7 Signed-off-by: Terry Parker <tparker@google.com>
Diffstat (limited to 'org.eclipse.jgit.junit')
-rw-r--r--org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java
index 98e29d7083..251e65f553 100644
--- a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java
+++ b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java
@@ -208,6 +208,17 @@ public class TestRepository<R extends Repository> {
return new Date(mockSystemReader.getCurrentTime());
}
+ /**
+ * @return current date.
+ *
+ * @deprecated Use {@link #getDate()} instead.
+ */
+ @Deprecated
+ public Date getClock() {
+ // Remove once Gitiles and Gerrit are using the updated JGit.
+ return getDate();
+ }
+
/** @return timezone used for default identities. */
public TimeZone getTimeZone() {
return mockSystemReader.getTimeZone();