@Test public void testCannotConstructProxyWhenInitialRefreshableIsEmpty() throws Exception { Refreshable<Object> refreshable = Refreshable.empty(); try { RefreshableProxyInvocationHandler.create(refreshable, supplier); failBecauseExceptionWasNotThrown(IllegalArgumentException.class); } catch (IllegalArgumentException e) { assertThat(e) .hasMessage("Cannot construct RefreshableProxyInvocationHandler with empty initial refreshable"); } }
public static <R, T> RefreshableProxyInvocationHandler<R, T> create( Refreshable<R> refreshable, Function<R, T> delegateSupplier) { return new RefreshableProxyInvocationHandler<>(refreshable, delegateSupplier); }
RefreshableProxyInvocationHandler extends AbstractInvocationHandler { public static <R, T> RefreshableProxyInvocationHandler<R, T> create( Refreshable<R> refreshable, Function<R, T> delegateSupplier) { return new RefreshableProxyInvocationHandler<>(refreshable, delegateSupplier); } }
RefreshableProxyInvocationHandler extends AbstractInvocationHandler { public static <R, T> RefreshableProxyInvocationHandler<R, T> create( Refreshable<R> refreshable, Function<R, T> delegateSupplier) { return new RefreshableProxyInvocationHandler<>(refreshable, delegateSupplier); } private  RefreshableProxyInvocationHandler(Refreshable<R> refreshable, Function<R, T> delegateSupplier); }
RefreshableProxyInvocationHandler extends AbstractInvocationHandler { public static <R, T> RefreshableProxyInvocationHandler<R, T> create( Refreshable<R> refreshable, Function<R, T> delegateSupplier) { return new RefreshableProxyInvocationHandler<>(refreshable, delegateSupplier); } private  RefreshableProxyInvocationHandler(Refreshable<R> refreshable, Function<R, T> delegateSupplier); static RefreshableProxyInvocationHandler<R, T> create(
            Refreshable<R> refreshable, Function<R, T> delegateSupplier); }
RefreshableProxyInvocationHandler extends AbstractInvocationHandler { public static <R, T> RefreshableProxyInvocationHandler<R, T> create( Refreshable<R> refreshable, Function<R, T> delegateSupplier) { return new RefreshableProxyInvocationHandler<>(refreshable, delegateSupplier); } private  RefreshableProxyInvocationHandler(Refreshable<R> refreshable, Function<R, T> delegateSupplier); static RefreshableProxyInvocationHandler<R, T> create(
            Refreshable<R> refreshable, Function<R, T> delegateSupplier);  }