public class RouteMock extends Object
| Constructor and Description |
|---|
RouteMock() |
| Modifier and Type | Method and Description |
|---|---|
RouteMock |
before(Handler handler)
Executes this handler before first matched handler.
|
TestClient |
client(Routing routing)
Creates new client with this mock and provided routing.
|
RouteMock |
replace(int matchRoutIndex,
Handler handler)
Replace single matched rout.
|
RouteMock |
skip(int matchRoutIndex)
Skips single matched rout.
|
public RouteMock skip(int matchRoutIndex)
matchRoutIndex - Index of the matched rout. First matched rout has index 0.public RouteMock replace(int matchRoutIndex, Handler handler)
matchRoutIndex - Index of the matched rout. First matched rout has index 0.handler - a new handler.public RouteMock before(Handler handler)
handler - a handler to execute.public TestClient client(Routing routing)
routing - a routing for the client.Copyright © 2018–2019 Oracle Corporation. All rights reserved.