Package com.google.common.testing
Class DummyProxy
- java.lang.Object
-
- com.google.common.testing.DummyProxy
-
- Direct Known Subclasses:
ClassSanityTester.SerializableDummyProxy
@GwtIncompatible abstract class DummyProxy extends java.lang.Object
Generates a dummy interface proxy that simply returns a dummy value for each method.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classDummyProxy.DummyHandler
-
Constructor Summary
Constructors Constructor Description DummyProxy()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract <R> RdummyReturnValue(TypeToken<R> returnType)Returns the dummy return value forreturnType.(package private) <T> TnewProxy(TypeToken<T> interfaceType)Returns a new proxy forinterfaceType.
-
-
-
Method Detail
-
newProxy
final <T> T newProxy(TypeToken<T> interfaceType)
Returns a new proxy forinterfaceType. Proxies of the same interface are equal to each other if theDummyProxyinstance that created the proxies are equal.
-
dummyReturnValue
abstract <R> R dummyReturnValue(TypeToken<R> returnType)
Returns the dummy return value forreturnType.
-
-