Package edu.wpi.cs.wpisuitetng.database

Examples of edu.wpi.cs.wpisuitetng.database.Data.retrieveAll()


    Data db = DataStore.getDataStore();
    User firstUser = new User("Brian", "bgaffey", "password", 0);
    db.save(firstUser);
    User secondUser = new User("Gaffey", "gafftron", "password", 0);
    db.save(secondUser);
    List<User> retrievedList = db.retrieveAll(firstUser);
   
    int initCount = retrievedList.size();
    assertTrue(retrievedList.contains(firstUser));
    assertTrue(retrievedList.contains(secondUser));
   
View Full Code Here


    int initCount = retrievedList.size();
    assertTrue(retrievedList.contains(firstUser));
    assertTrue(retrievedList.contains(secondUser));
   
    db.delete(firstUser);
    retrievedList = db.retrieveAll(firstUser);
   
    assertEquals(initCount - 1, retrievedList.size());
    assertTrue(retrievedList.contains(secondUser));
    assertFalse(retrievedList.contains(firstUser));
   
View Full Code Here

    User[] arr = new User[2];
    User firstUser = new User("Brian", "bgaffey", "password", 0);
    db.save(firstUser);
    User secondUser = new User("Gaffey", "gafftron", "password", 0);
    db.save(secondUser);
    List<User> retrievedList = db.retrieveAll(firstUser);
   
    int initCount = retrievedList.size();
    assertTrue(retrievedList.contains(firstUser));
    assertTrue(retrievedList.contains(secondUser));
   
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.