Package com.google.common.testing
Class DummyProxy
- java.lang.Object
-
- com.google.common.testing.DummyProxy
-
- Direct Known Subclasses:
ClassSanityTester.SerializableDummyProxy
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 class
DummyProxy.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> R
dummyReturnValue(TypeToken<R> returnType)
Returns the dummy return value forreturnType
.(package private) <T> T
newProxy(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 theDummyProxy
instance that created the proxies are equal.
-
dummyReturnValue
abstract <R> R dummyReturnValue(TypeToken<R> returnType)
Returns the dummy return value forreturnType
.
-
-