get_all_user tests successful

sign_in_up_out
Daniel Zdravkovic 2024-06-11 10:57:28 +02:00
parent 33ff251c20
commit 5d087518e9
4 changed files with 8 additions and 7 deletions

View File

@ -96,6 +96,7 @@ public class System {
return false; return false;
} }
/*public boolean sign_up_user(String username, String password, String hometown, String zipS, /*public boolean sign_up_user(String username, String password, String hometown, String zipS,
String car_name, String car_l_100kmS, String car_avg_kmhS, String bike_avg_kmhS) throws IOException { String car_name, String car_l_100kmS, String car_avg_kmhS, String bike_avg_kmhS) throws IOException {
int zip = Integer.parseInt(zipS); int zip = Integer.parseInt(zipS);

View File

@ -1 +1,2 @@
Daniel;1401Daniel;Mannheim;68305;BMW;1.5;50.4;40.2 Daniel;1401Daniel;Mannheim;68305;BMW;1.5;50.4;40.2
David;123Esel;Mannheim;68305;BMW;1.5;50.4;40.2
1 Daniel 1401Daniel Mannheim 68305 BMW 1.5 50.4 40.2
2 David 123Esel Mannheim 68305 BMW 1.5 50.4 40.2

View File

@ -108,11 +108,9 @@ public class SystemTest {
@Test @Test
public void get_all_user() { public void get_all_user() {
assertEquals(1, current_system.get_all_user().size()); assertEquals(2, current_system.get_all_user().size());
assertEquals(true, current_system.get_all_user().get(0).getPassword().equals("MTQwMURhbmllbA=="));
ArrayList<User> list = new ArrayList<>(current_system.get_all_user()); assertEquals(true, current_system.get_all_user().get(1).getPassword().equals("MTIzRXNlbA=="));
assertEquals(true, list.get(0).getPassword().equals("MTQwMURhbmllbA=="));
//Passwort unkodiert: 1401Daniel
} }
} }

View File

@ -1 +1,2 @@
Daniel;1401Daniel;Mannheim;68305;BMW;1.5;50.4;40.2 Daniel;1401Daniel;Mannheim;68305;BMW;1.5;50.4;40.2
David;123Esel;Mannheim;68305;BMW;1.5;50.4;40.2
1 Daniel 1401Daniel Mannheim 68305 BMW 1.5 50.4 40.2
2 David 123Esel Mannheim 68305 BMW 1.5 50.4 40.2