diff options
author | Florian Zschocke <f.zschocke+git@gmail.com> | 2021-10-23 23:20:47 +0200 |
---|---|---|
committer | Florian Zschocke <f.zschocke+git@gmail.com> | 2021-10-23 23:20:47 +0200 |
commit | b3f35278cead1c4647a10ae615258555618bd087 (patch) | |
tree | 4197ed94312ae894f57e6662c40487c7e5510e17 /src/main/java/com/gitblit/client/GitblitPanel.java | |
parent | 4f04ab8ec402dd51bbdb7121d89da2d9a385f1a8 (diff) | |
download | gitblit-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