MCPcopy Create free account
hub / github.com/grpc/grpc-java / equality

Method equality

api/src/test/java/io/grpc/DeadlineTest.java:314–326  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

312 }
313
314 @Test
315 public void equality() {
316 final Deadline d1 = Deadline.after(12, TimeUnit.MICROSECONDS, ticker);
317 final Deadline d2 = Deadline.after(12, TimeUnit.MICROSECONDS, ticker);
318 final Deadline d3 = Deadline.after(12, TimeUnit.MICROSECONDS, new FakeTicker());
319 final Deadline d4 = Deadline.after(10, TimeUnit.MICROSECONDS, ticker);
320
321 new EqualsTester()
322 .addEqualityGroup(d1, d2)
323 .addEqualityGroup(d3)
324 .addEqualityGroup(d4)
325 .testEquals();
326 }
327
328 private static class FakeTicker extends Deadline.Ticker {
329 private long time;

Callers

nothing calls this directly

Calls 1

afterMethod · 0.95

Tested by

no test coverage detected