get_all_user tests successful
parent
33ff251c20
commit
5d087518e9
|
@ -96,6 +96,7 @@ public class System {
|
|||
return false;
|
||||
}
|
||||
|
||||
|
||||
/*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 {
|
||||
int zip = Integer.parseInt(zipS);
|
||||
|
|
|
@ -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
|
|
|
@ -108,11 +108,9 @@ public class SystemTest {
|
|||
@Test
|
||||
public void get_all_user() {
|
||||
|
||||
assertEquals(1, current_system.get_all_user().size());
|
||||
|
||||
ArrayList<User> list = new ArrayList<>(current_system.get_all_user());
|
||||
assertEquals(true, list.get(0).getPassword().equals("MTQwMURhbmllbA=="));
|
||||
//Passwort unkodiert: 1401Daniel
|
||||
assertEquals(2, current_system.get_all_user().size());
|
||||
assertEquals(true, current_system.get_all_user().get(0).getPassword().equals("MTQwMURhbmllbA=="));
|
||||
assertEquals(true, current_system.get_all_user().get(1).getPassword().equals("MTIzRXNlbA=="));
|
||||
}
|
||||
|
||||
}
|
|
@ -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
|
|
Loading…
Reference in New Issue