public class NinjaRouterTest extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
NinjaRouterTest.WhenRouterAnswer |
| Constructor and Description |
|---|
NinjaRouterTest() |
| Modifier and Type | Method and Description |
|---|---|
NinjaRouterTest.WhenRouterAnswer |
aRequestLike(String httpMethod,
String url)
A simple DSL that allows to test routes.
|
void |
startServer()
Start the server and load the routes.
|
void |
startServerInDevMode()
Start a server in dev mode and load routes.
|
void |
startServerInProdMode()
Start a server in prod mode and load routes.
|
void |
startServerInTestMode()
Start a server in test mode and load routes.
|
void |
teardown() |
public void teardown()
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 © 2013. All Rights Reserved.