com.google.gwtmockito.fakes
Interface FakeProvider<T>

Type Parameters:
T - type that this interface can provide
All Known Implementing Classes:
FakeClientBundleProvider, FakeMessagesProvider, FakeUiBinderProvider

public interface FakeProvider<T>

Interface implemented by an object capable of providing fake instances of a given type. Instances of this interface must be registered via GwtMockito.useProviderForType(java.lang.Class, com.google.gwtmockito.fakes.FakeProvider).

Author:
ekuefler@google.com (Erik Kuefler)

Method Summary
 T getFake(Class<?> type)
          Returns a fake implementation of the given type.
 

Method Detail

getFake

T getFake(Class<?> type)
Returns a fake implementation of the given type.

Parameters:
type - the actual type passed to GWT.create. Usually this is the same as T, but it could be a subtype or a completely unrelated type depending on how GwtMockito.useProviderForType(java.lang.Class, com.google.gwtmockito.fakes.FakeProvider) was called.


Copyright © 2013. All Rights Reserved.