From a38c77533a6471d81473713cf8504d565c4012e4 Mon Sep 17 00:00:00 2001 From: Selim Eser <2211482@stud.hs-mannheim.de> Date: Wed, 12 Jun 2024 00:08:30 +0200 Subject: [PATCH] Tests fixed to automatically correcting user_data.csv --- src/main/resources/user_data.csv | 2 +- src/test/java/de/hs_mannheim/domain/SystemTest.java | 5 +++-- src/test/resources/user_data.csv | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/resources/user_data.csv b/src/main/resources/user_data.csv index 912c767..064684c 100644 --- a/src/main/resources/user_data.csv +++ b/src/main/resources/user_data.csv @@ -1,2 +1,2 @@ Daniel;MTQwMURhbmllbA==;Mannheim;68305;BMW;1.5;50.4;40.2 -David;MTIzRXNlbA==;Mannheim;68161;AMG;10.0;300.0;20.0 \ No newline at end of file +David;MTIzRXNlbA==;Mannheim;68161;AMG;10.0;100.0;20.0 \ No newline at end of file diff --git a/src/test/java/de/hs_mannheim/domain/SystemTest.java b/src/test/java/de/hs_mannheim/domain/SystemTest.java index 3059507..ff0b147 100644 --- a/src/test/java/de/hs_mannheim/domain/SystemTest.java +++ b/src/test/java/de/hs_mannheim/domain/SystemTest.java @@ -146,12 +146,13 @@ public class SystemTest { current_system.sign_in_user("David", "123Esel"); current_system.change_user_details("Enes", "Penis123", "Mannheim", "68161", "", "", "", ""); assertEquals("Enes", current_system.getDetails()[0]); - + current_system.change_user_details("David", "123Esel", "Mannheim", "68161", "AMG", "10", "100", "20"); + } /* Tests auf Basis von user_data.csv: Daniel;MTQwMURhbmllbA==;Mannheim;68305;BMW;1.5;50.4;40.2 -David;MTIzRXNlbA==;Mannheim;68161;AMG;10.0;300.0;20.0 +David;MTIzRXNlbA==;Mannheim;68161;AMG;10.0;100.0;20.0 */ diff --git a/src/test/resources/user_data.csv b/src/test/resources/user_data.csv index 912c767..064684c 100644 --- a/src/test/resources/user_data.csv +++ b/src/test/resources/user_data.csv @@ -1,2 +1,2 @@ Daniel;MTQwMURhbmllbA==;Mannheim;68305;BMW;1.5;50.4;40.2 -David;MTIzRXNlbA==;Mannheim;68161;AMG;10.0;300.0;20.0 \ No newline at end of file +David;MTIzRXNlbA==;Mannheim;68161;AMG;10.0;100.0;20.0 \ No newline at end of file