Fixing getAllUsers again
This commit is contained in:
		
							parent
							
								
									8e4c7c7a8e
								
							
						
					
					
						commit
						f1dd30d7bb
					
				
					 2 changed files with 6 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -230,6 +230,7 @@ public class DBHelper extends SQLiteOpenHelper {
 | 
			
		|||
                    user[j] = cursor.getString(j);
 | 
			
		||||
                }
 | 
			
		||||
                listOfUsers.add(user);
 | 
			
		||||
                cursor.moveToNext();
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
        cursor.close();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -115,6 +115,10 @@ public class DBIntegrationTest {
 | 
			
		|||
        List<String[]> allUsers = dbHelper.getAllUsers();
 | 
			
		||||
 | 
			
		||||
        for (String[] user : allUsers){
 | 
			
		||||
//            for (String s : user){
 | 
			
		||||
//                System.out.print(s + " ");
 | 
			
		||||
//            }
 | 
			
		||||
//            System.out.println();
 | 
			
		||||
            UserType usertype = dbHelper.findUserByUsername(user[0]);
 | 
			
		||||
            assertEquals(usertype.getFirstname(), user[1]);
 | 
			
		||||
            assertEquals(usertype.getLastname(), user[2]);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue