com.google.gwtmockito.fakes
Class FakeUiBinderProvider
java.lang.Object
com.google.gwtmockito.fakes.FakeUiBinderProvider
- All Implemented Interfaces:
- FakeProvider<UiBinder<?,?>>
public class FakeUiBinderProvider
- extends Object
- implements FakeProvider<UiBinder<?,?>>
Provides fake implementations of UiBinder
. The fake implementation
populates all (non-provided) UiField
in the target type with objects
obtained from GWT.create. GwtMockito
can be
used to control values returned from GWT.create and hence affect how fields
are populated.
- Author:
- ekuefler@google.com (Erik Kuefler)
Method Summary |
UiBinder<?,?> |
getFake(Class<?> type)
Returns a new instance of FakeUiBinder that implements the given interface. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FakeUiBinderProvider
public FakeUiBinderProvider()
getFake
public UiBinder<?,?> getFake(Class<?> type)
- Returns a new instance of FakeUiBinder that implements the given interface.
This is accomplished by returning a dynamic proxy object that delegates
calls to a backing FakeUiBinder.
- Specified by:
getFake
in interface FakeProvider<UiBinder<?,?>>
- Parameters:
type
- interface to be implemented by the returned type. This must
represent an interface that directly extends UiBinder
.
Copyright © 2013. All Rights Reserved.