assertEquals(me, first);
}
@Test
public void testComplexRetrieve() throws WPISuiteException, IllegalAccessException, InvocationTargetException{
Data db = DataStore.getDataStore();
User[] arr = new User[2];
User firstUser = new User("Ryan", "rchamer", "password", 0);
User secondUser = new User("Bryan", "rchamer", "pword", 1);
User thirdUser = new User("Tyler", "twack", "word", 2);
List<User> first = new ArrayList<User>();
db.deleteAll(firstUser);
first.add(firstUser);
first.add(thirdUser);
db.deleteAll(firstUser);
db.save(firstUser);
db.save(secondUser);
db.save(thirdUser);
String[] list = new String[2];
list[0] = "Username";
list[1] = "Name";
List<Object> objlist = new ArrayList<Object>();
objlist.add("rchamer");
objlist.add("Ryan");
String[] orList = new String[2];
orList[0] = "idNum";
orList[1] = "Name";
List<Object> orObjList = new ArrayList<Object>();
orObjList.add(0);
orObjList.add("Tyler");
List<Model> me = db.complexRetrieve(firstUser.getClass(), list, objlist, firstUser.getClass(), orList, orObjList);
assertEquals(me, first);
}