From 067617e8c0e8fc473c67ab3ce23b66e390e3286a Mon Sep 17 00:00:00 2001 From: Selim Eser <2211482@stud.hs-mannheim.de> Date: Sun, 9 Jun 2024 18:00:26 +0200 Subject: [PATCH] test method implemented and build successful --- src/test/java/de/hs_mannheim/domain/SystemTest.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/test/java/de/hs_mannheim/domain/SystemTest.java b/src/test/java/de/hs_mannheim/domain/SystemTest.java index bc8acac..4a546a0 100644 --- a/src/test/java/de/hs_mannheim/domain/SystemTest.java +++ b/src/test/java/de/hs_mannheim/domain/SystemTest.java @@ -39,4 +39,17 @@ public class SystemTest { } + @Test + public void distance(){ + + System current_system = new System("35a75437476f12302f72e55d368485db"); + + current_system.set_current_user_zip("68161"); + + assertEquals("88.4596509227594 km", current_system.distance("60306")); // Frankfurt + assertEquals("581.1091061333296 km", current_system.distance("20095")); // Hamburg + assertEquals("603.6077163174941 km", current_system.distance("10115")); // Berlin + + } + }