com.google.gwtmockito.fakes
Class FakeClientBundleProvider
java.lang.Object
com.google.gwtmockito.fakes.FakeClientBundleProvider
- All Implemented Interfaces:
- FakeProvider<ClientBundle>
public class FakeClientBundleProvider
- extends Object
- implements FakeProvider<ClientBundle>
Provides fake implementations of ClientBundles. Any methods in the
bundle returning CssResources will GWT.create the CssResource
(which by default will cause it to be generated by
FakeMessagesProvider. Other types of resources will be generated to
return unique values from their getText() or getSafeUri() methods.
- Author:
- ekuefler@google.com (Erik Kuefler)
|
Method Summary |
ClientBundle |
getFake(Class<?> type)
Returns a new instance of the given type that implements methods as
described in the class description. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FakeClientBundleProvider
public FakeClientBundleProvider()
getFake
public ClientBundle getFake(Class<?> type)
- Returns a new instance of the given type that implements methods as
described in the class description.
- Specified by:
getFake in interface FakeProvider<ClientBundle>
- Parameters:
type - interface to be implemented by the returned type.
Copyright © 2013. All Rights Reserved.