summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/client/GitblitPanel.java
diff options
context:
space:
mode:
authorFlorian Zschocke <f.zschocke+git@gmail.com>2021-10-23 23:20:47 +0200
committerFlorian Zschocke <f.zschocke+git@gmail.com>2021-10-23 23:20:47 +0200
commitb3f35278cead1c4647a10ae615258555618bd087 (patch)
tree4197ed94312ae894f57e6662c40487c7e5510e17 /src/main/java/com/gitblit/client/GitblitPanel.java
parent4f04ab8ec402dd51bbdb7121d89da2d9a385f1a8 (diff)
downloadgitblit-b3f35278cead1c4647a10ae615258555618bd087.tar.gz
gitblit-b3f35278cead1c4647a10ae615258555618bd087.zip
TimeUtils: Increase testability and add tests
Add tests for `timeAgo` to analyse issue #1248. The tests are dependent on when they run as they time functions use the current date and time. To make them testable in a reproducible way, we need the ability to pass in what we think is "now". So add overloaded methods that take a `now` parameter so that we can pass in the current time.
Diffstat (limited to 'src/main/java/com/gitblit/client/GitblitPanel.java')
0 files changed, 0 insertions, 0 deletions