public class ApplicationTest {
@Test
public void simpleApplicationTest() {
Map<String, RequestHandler> handlers = new HashMap<String, RequestHandler>();
final RequestHandler handler1 = new RequestHandler() {
@Override public void get(HttpRequest request, HttpResponse response) { }
};
final RequestHandler handler2 = new RequestHandler() {
@Override public void get(HttpRequest request, HttpResponse response) { }
};
final RequestHandler handler3 = new RequestHandler() {
@Override public void get(HttpRequest request, HttpResponse response) { }
};
final RequestHandler handler4 = new RequestHandler() {
@Override public void get(HttpRequest request, HttpResponse response) { }
};
handlers.put("/", handler1);
handlers.put("/persons/([0-9]+)", handler2);