com.google.gwtmockito.fakes
Class FakeUiBinderProvider

java.lang.Object
  extended by 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)

Constructor Summary
FakeUiBinderProvider()
           
 
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
 

Constructor Detail

FakeUiBinderProvider

public FakeUiBinderProvider()
Method Detail

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.