|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.google.web.bindery.requestfactory.shared.testing.FakeRequestContext
public class FakeRequestContext
A no-op implementation of RequestConext that can be used as a base type for writing unit tests.
| Constructor Summary | |
|---|---|
FakeRequestContext()
|
|
| Method Summary | ||
|---|---|---|
|
append(T other)
Always returns other. |
|
|
create(java.lang.Class<T> clazz)
Returns null. |
|
|
edit(T object)
Always returns object. |
|
|
find(EntityProxyId<P> proxyId)
Returns null. |
|
void |
fire()
No-op. |
|
void |
fire(Receiver<java.lang.Void> receiver)
No-op. |
|
RequestFactory |
getRequestFactory()
Returns null. |
|
boolean |
isChanged()
Always returns false. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FakeRequestContext()
| Method Detail |
|---|
public <T extends RequestContext> T append(T other)
other.
append in interface RequestContextother - a freshly-constructed RequestContext whose state should be
bound to this RequestContext
otherpublic <T extends BaseProxy> T create(java.lang.Class<T> clazz)
null.
create in interface RequestContextclazz - a Class object of type T
BaseProxy instance of type Tpublic <T extends BaseProxy> T edit(T object)
object.
edit in interface RequestContextobject - an instance of type T
EntityProxy or ValueProxy instance of type Tpublic <P extends EntityProxy> Request<P> find(EntityProxyId<P> proxyId)
null.
find in interface RequestContextproxyId - an EntityProxyId instance of type P
Request objectpublic void fire()
fire in interface RequestContextpublic void fire(Receiver<java.lang.Void> receiver)
fire in interface RequestContextreceiver - a Receiver instancepublic RequestFactory getRequestFactory()
null.
getRequestFactory in interface RequestContextpublic boolean isChanged()
false.
isChanged in interface RequestContexttrue if any changes have been made
|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||