@Test public void getTupleWidthTest() throws Exception { try (CachingResolver cr = new CachingResolver(mockedAsyncResolver, Duration.standardMinutes(10), Duration.standardMinutes(60))) { assertEquals(2, cr.getTupleWidth()); } verify(mockedAsyncResolver, times(1)).getTupleWidth(); verify(mockedAsyncResolver, atLeast(0)).getTuples(); verifyNoMoreInteractions(mockedAsyncResolver); }
@Override public int getTupleWidth() { return underlying.getTupleWidth(); }
CachingResolver implements Resolver { @Override public int getTupleWidth() { return underlying.getTupleWidth(); } }
CachingResolver implements Resolver { @Override public int getTupleWidth() { return underlying.getTupleWidth(); } CachingResolver(@NonNull AsyncResolver underlying, @NonNull Duration minAge, @NonNull Duration maxAge);  CachingResolver(@NonNull Resolver underlying, @NonNull Duration minAge, @NonNull Duration maxAge); }
CachingResolver implements Resolver { @Override public int getTupleWidth() { return underlying.getTupleWidth(); } CachingResolver(@NonNull AsyncResolver underlying, @NonNull Duration minAge, @NonNull Duration maxAge);  CachingResolver(@NonNull Resolver underlying, @NonNull Duration minAge, @NonNull Duration maxAge); @Override int getTupleWidth(); @Override synchronized Collection<ResolverTuple> getTuples(); @Override String configString(); @Override synchronized void close(); }
CachingResolver implements Resolver { @Override public int getTupleWidth() { return underlying.getTupleWidth(); } CachingResolver(@NonNull AsyncResolver underlying, @NonNull Duration minAge, @NonNull Duration maxAge);  CachingResolver(@NonNull Resolver underlying, @NonNull Duration minAge, @NonNull Duration maxAge); @Override int getTupleWidth(); @Override synchronized Collection<ResolverTuple> getTuples(); @Override String configString(); @Override synchronized void close();  }