MCPcopy Create free account
hub / github.com/InterviewReady/Low-Level-Design / TestTimer

Class TestTimer

rate-limiter/src/test/java/TestTimer.java:3–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import utils.Timer;
2
3public class TestTimer extends Timer {
4 private long currentTime = System.currentTimeMillis();
5
6 @Override
7 public long getCurrentTimeInMillis() {
8 return currentTime;
9 }
10
11 public void setTime(final long currentTime) {
12 this.currentTime = currentTime;
13 }
14}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected