public class Action extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Action.ActionResult
Action's result.
|
| Modifier and Type | Field and Description |
|---|---|
private FakeContext |
context
The fake context.
|
private Invocation |
invocation
The invocation.
|
| Constructor and Description |
|---|
Action(Invocation invocation)
Creates an invocation.
|
| Modifier and Type | Method and Description |
|---|---|
static Action |
action(Invocation invocation)
Gets a new action using the given invocation.
|
Action |
attribute(String name,
String value)
Sets a parameter.
|
Action |
body(Object object)
Sets the body.
|
Action |
header(String name,
String value)
Sets a header.
|
Action.ActionResult |
invoke()
Invokes the configured action.
|
Action |
parameter(String name,
boolean value)
Sets a parameter.
|
Action |
parameter(String name,
int value)
Sets a parameter.
|
Action |
parameter(String name,
String value)
Sets a parameter.
|
Action |
with()
Just there for cosmetic reason.
|
Action |
with(FakeContext context)
Sets the context of the action to the given context.
|
private final Invocation invocation
private FakeContext context
public Action(Invocation invocation)
invocation - the invocationpublic static Action action(Invocation invocation)
invocation - the invocationpublic Action with()
public Action with(FakeContext context)
context - the fake context.public Action parameter(String name, String value)
name - the parameter namevalue - the parameter valuepublic Action body(Object object)
object - the bodypublic Action parameter(String name, int value)
name - the parameter namevalue - the parameter valuepublic Action parameter(String name, boolean value)
name - the parameter namevalue - the parameter valuepublic Action attribute(String name, String value)
name - the parameter namevalue - the parameter valuepublic Action header(String name, String value)
name - the header namevalue - the header valuepublic Action.ActionResult invoke()
Copyright © 2013–2015 Wisdom Framework. All rights reserved.