From d86ba2949e2d7be238e3a6ea8620872fb526d66a Mon Sep 17 00:00:00 2001
From: ulrich
Date: Sun, 04 Apr 2021 13:51:46 +0000
Subject: [PATCH] Erster Test fuer Persistenz mit Gson 

---
 src/de/uhilger/mediaz/Server.java |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/de/uhilger/mediaz/Server.java b/src/de/uhilger/mediaz/Server.java
index 2ec1044..c31c9fb 100644
--- a/src/de/uhilger/mediaz/Server.java
+++ b/src/de/uhilger/mediaz/Server.java
@@ -18,12 +18,13 @@
 package de.uhilger.mediaz;
 
 import com.sun.net.httpserver.HttpServer;
+import de.uhilger.mediaz.api.AblageTestHandler;
 import de.uhilger.mediaz.api.FileHandler;
 import de.uhilger.mediaz.api.StopServerHandler;
+import de.uhilger.mediaz.api.StoreTestHandler;
 import java.io.IOException;
 import java.util.logging.Logger;
 import java.net.InetSocketAddress;
-import java.util.ResourceBundle;
 import java.util.concurrent.Executors;
 import java.util.logging.Level;
 
@@ -41,6 +42,8 @@
   public static final String RB_SERVER_START_MSG = "msgServerStart";
   public static final String RB_WEBROOT = "webroot";
   public static final String RB_STOP_SERVER = "stopServer";
+  public static final String RB_ABLAGE_TEST = "testAblage";
+  public static final String RB_STORE_TEST = "testStore";
   public static final String RB_SLASH = "slash";
   
   private int port;
@@ -91,6 +94,8 @@
     HttpServer server = HttpServer.create(new InetSocketAddress(port), 0);
     server.createContext(ctx + App.getRs(RB_WEBROOT), new FileHandler(App.getInitParameter(App.getRs(App.RB_AP_WWW_DATA))));
     server.createContext(ctx + App.getRs(RB_STOP_SERVER), new StopServerHandler());
+    server.createContext(ctx + App.getRs(RB_ABLAGE_TEST), new AblageTestHandler());
+    server.createContext(ctx + App.getRs(RB_STORE_TEST), new StoreTestHandler());
     server.setExecutor(Executors.newFixedThreadPool(20));
     server.start();
   }

--
Gitblit v1.9.3