From ed2c6b584d4c6160bfdeed55bc9f8c1a00da2998 Mon Sep 17 00:00:00 2001 From: Marcel Luethi Date: Tue, 24 Sep 2024 20:02:29 +0200 Subject: [PATCH] change things back to hello --- src/main/java/org/example/SimpleHttpServer.java | 2 +- src/test/java/org/example/SimpleHttpServerTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/example/SimpleHttpServer.java b/src/main/java/org/example/SimpleHttpServer.java index 8e90f68..8ae9b99 100644 --- a/src/main/java/org/example/SimpleHttpServer.java +++ b/src/main/java/org/example/SimpleHttpServer.java @@ -35,7 +35,7 @@ public void handle(HttpExchange exchange) throws IOException { } // Create the response message - String response = "Hi " + name; + String response = "Hello " + name; // Send the response back exchange.sendResponseHeaders(200, response.getBytes().length); diff --git a/src/test/java/org/example/SimpleHttpServerTest.java b/src/test/java/org/example/SimpleHttpServerTest.java index c6ea918..564e5b6 100644 --- a/src/test/java/org/example/SimpleHttpServerTest.java +++ b/src/test/java/org/example/SimpleHttpServerTest.java @@ -60,6 +60,6 @@ public void testHelloWithName() throws Exception { in.close(); connection.disconnect(); - assertEquals("Hi " + name, content.toString()); + assertEquals("Hello " + name, content.toString()); } }