Class ForwardingWrapperTester

java.lang.Object
com.google.common.testing.ForwardingWrapperTester

@GwtIncompatible public final class ForwardingWrapperTester extends Object
Tester to ensure forwarding wrapper works by delegating calls to the corresponding method with the same parameters forwarded and return value forwarded back or exception propagated as is.

For example:


 new ForwardingWrapperTester().testForwarding(Foo.class, new Function<Foo, Foo>() {
   public Foo apply(Foo foo) {
     return new ForwardingFoo(foo);
   }
 });
 
Since:
14.0
Author:
Ben Yu