|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 RequestContext
other
- a freshly-constructed RequestContext whose state should be
bound to this RequestContext
other
public <T extends BaseProxy> T create(java.lang.Class<T> clazz)
null
.
create
in interface RequestContext
clazz
- a Class object of type T
BaseProxy
instance of type Tpublic <T extends BaseProxy> T edit(T object)
object
.
edit
in interface RequestContext
object
- 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 RequestContext
proxyId
- an EntityProxyId
instance of type P
Request
objectpublic void fire()
fire
in interface RequestContext
public void fire(Receiver<java.lang.Void> receiver)
fire
in interface RequestContext
receiver
- a Receiver
instancepublic RequestFactory getRequestFactory()
null
.
getRequestFactory
in interface RequestContext
public boolean isChanged()
false
.
isChanged
in interface RequestContext
true
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 |