com.google.gwtmockito.fakes
Class FakeMessagesProvider<T>

java.lang.Object
  extended by com.google.gwtmockito.fakes.FakeMessagesProvider<T>
All Implemented Interfaces:
FakeProvider<T>

public class FakeMessagesProvider<T>
extends Object
implements FakeProvider<T>

Provides fake implementations of Messages, CssResource, and SafeHtmlTemplates. The fake implementations implement methods by returning Strings of SafeHtml instances based on the method name and the arguments passed to it. The exact format of the message is undefined and is subject to change.

Author:
ekuefler@google.com (Erik Kuefler)

Constructor Summary
FakeMessagesProvider()
           
 
Method Summary
 T 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
 

Constructor Detail

FakeMessagesProvider

public FakeMessagesProvider()
Method Detail

getFake

public T 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<T>
Parameters:
type - interface to be implemented by the returned type.


Copyright © 2013. All Rights Reserved.