Removed unnecessary code in tests

minor_adjustments
Selim Eser 2024-06-12 00:16:46 +02:00
parent a38c77533a
commit f90eeb6841
1 changed files with 1 additions and 6 deletions

View File

@ -51,9 +51,6 @@ public class SystemTest {
current_system.sign_in_user("David","123Esel"); 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("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 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.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("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("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 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]); assertEquals("Lukas",current_system.getDetails()[0]);
current_system.sign_out_user(); current_system.sign_out_user();
assertEquals("",current_system.getDetails()[0]); assertEquals("",current_system.getDetails()[0]);
assertEquals(true, current_system.sign_in_user("Lukas","123Esel"));
} }
@Test @Test