Package com.google.common.testing
Class DummyProxy
java.lang.Object
com.google.common.testing.DummyProxy
- Direct Known Subclasses:
ClassSanityTester.SerializableDummyProxy
Generates a dummy interface proxy that simply returns a dummy value for each method.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) abstract <R> R
dummyReturnValue
(TypeToken<R> returnType) Returns the dummy return value forreturnType
.(package private) final <T> T
Returns a new proxy forinterfaceType
.
-
Constructor Details
-
DummyProxy
DummyProxy()
-
-
Method Details
-
newProxy
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
Returns the dummy return value forreturnType
.
-