Bläddra i källkod

Add new tests skeleton

jamming 10 år sedan
förälder
incheckning
aac110e642
1 ändrade filer med 16 tillägg och 0 borttagningar
  1. 16 0
      frameworks/Java/sabina/src/main/java/sabina/Application.java

+ 16 - 0
frameworks/Java/sabina/src/main/java/sabina/Application.java

@@ -101,6 +101,22 @@ public class Application {
 
         get ("/db", Application::getDb);
 
+        /*
+         * Add this to benchmark_config
+         * "fortune_url": "/fortune",
+         */
+//        get ("/fortune", it -> {
+//            throw new UnsupportedOperationException ();
+//        });
+
+        /*
+         * Add this to benchmark_config
+         * "update_url": "/update",
+         */
+//        get ("/update", it -> {
+//            throw new UnsupportedOperationException ();
+//        });
+
         get ("/plaintext", it -> {
             it.response.type (CONTENT_TYPE_TEXT);
             return MESSAGE;