@Deprecated public class NinjaRouterTest extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
NinjaRouterTest.WhenRouterAnswer
Deprecated.
|
| Modifier and Type | Field and Description |
|---|---|
Router |
router
Deprecated.
The router - initiated from a real server.
|
| Constructor and Description |
|---|
NinjaRouterTest()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
NinjaRouterTest.WhenRouterAnswer |
aRequestLike(String httpMethod,
String url)
Deprecated.
A simple DSL that allows to test routes.
|
void |
startServer()
Deprecated.
Start the server and load the routes.
|
void |
startServer(NinjaMode ninjaMode)
Deprecated.
Start the server and load the routes.
|
void |
startServerInDevMode()
Deprecated.
Start a server in dev mode and load routes.
|
void |
startServerInProdMode()
Deprecated.
Start a server in prod mode and load routes.
|
void |
startServerInTestMode()
Deprecated.
Start a server in test mode and load routes.
|
void |
stopServer()
Deprecated.
|
public Router router
public void startServer(NinjaMode ninjaMode)
public void stopServer()
public void startServer()
public void startServerInProdMode()
public void startServerInDevMode()
public void startServerInTestMode()
public NinjaRouterTest.WhenRouterAnswer aRequestLike(String httpMethod, String url)
httpMethod - "GET", "POST", "DELETE", "PUT" and so on...url - the url to test. For instance "/_test". Does not contain a server prefix.Copyright © 2014. All Rights Reserved.