| Package | Description |
|---|---|
| org.wisdom.test.parents |
| Modifier and Type | Field and Description |
|---|---|
private FakeContext |
FakeRequest.context |
private FakeContext |
Action.context
The fake context.
|
| Modifier and Type | Method and Description |
|---|---|
FakeContext |
FakeContext.addToFlash(String key,
String value)
Adds data to the (incoming) flash scope.
|
FakeContext |
FakeContext.addToSession(String key,
String value)
Adds data to the session.
|
FakeContext |
FakeContext.setAttribute(String name,
File file)
Deprecated.
use
setFormField(String, java.io.File) instead. |
FakeContext |
FakeContext.setAttribute(String name,
String value)
Deprecated.
use
setFormField(String, String) instead. |
FakeContext |
FakeContext.setBody(Object body)
Sets the body.
|
FakeContext |
FakeContext.setCookie(org.wisdom.api.cookies.Cookie cookie)
Adds a cookie.
|
FakeContext |
FakeContext.setCookie(String name,
String value)
Adds a cookie.
|
FakeContext |
FakeContext.setFormField(String name,
File file)
Adds an uploaded files.
|
FakeContext |
FakeContext.setFormField(String name,
String value)
Sets the value of a form field.
|
FakeContext |
FakeContext.setHeader(String name,
String... values)
Sets a header.
|
FakeContext |
FakeContext.setHeader(String name,
String value)
Sets a header.
|
FakeContext |
FakeContext.setParameter(String name,
List<String> values)
Sets a parameter values.
|
FakeContext |
FakeContext.setParameter(String name,
String value)
Sets a parameter.
|
FakeContext |
FakeContext.setPath(String path)
Sets the context's path.
|
| Modifier and Type | Method and Description |
|---|---|
Action |
Action.with(FakeContext context)
Sets the context of the action to the given context.
|
| Constructor and Description |
|---|
FakeRequest(FakeContext fakeContext)
Creates an instance of fake request.
|
Copyright © 2013–2014 Wisdom Framework. All rights reserved.