From f90eeb68415a805a088204186b97c1f4cd0d685d Mon Sep 17 00:00:00 2001 From: Selim Eser <2211482@stud.hs-mannheim.de> Date: Wed, 12 Jun 2024 00:16:46 +0200 Subject: [PATCH] Removed unnecessary code in tests --- src/test/java/de/hs_mannheim/domain/SystemTest.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/test/java/de/hs_mannheim/domain/SystemTest.java b/src/test/java/de/hs_mannheim/domain/SystemTest.java index ff0b147..8a47749 100644 --- a/src/test/java/de/hs_mannheim/domain/SystemTest.java +++ b/src/test/java/de/hs_mannheim/domain/SystemTest.java @@ -51,9 +51,6 @@ public class SystemTest { current_system.sign_in_user("David","123Esel"); - current_system.set_current_user_car_avg_kmh(100); - current_system.set_current_user_bike_avg_kmh(20); - assertEquals("0.885 h", current_system.travel_time("60306")[0]); // Frankfurt mit Auto assertEquals("4.423 h", current_system.travel_time("60306")[1]); // Frankfurt mit Fahrrad @@ -66,9 +63,6 @@ public class SystemTest { current_system.sign_in_user("David","123Esel"); - current_system.set_current_user_car_avg_kmh(100); - current_system.set_current_user_car_l_100km(10); - assertEquals("8.846 l", current_system.calc_l_consumption("60306")); // Kraftstoffverbrauch nach Frankfurt assertEquals("58.111 l", current_system.calc_l_consumption("20095")); // Kraftstoffverbrauch nach Hamburg assertEquals("60.361 l", current_system.calc_l_consumption("10115")); // Kraftstoffverbrauch nach Berlin @@ -138,6 +132,7 @@ public class SystemTest { assertEquals("Lukas",current_system.getDetails()[0]); current_system.sign_out_user(); assertEquals("",current_system.getDetails()[0]); + assertEquals(true, current_system.sign_in_user("Lukas","123Esel")); } @Test