memberDB = datafolder;
memberReport = reportfolder;
}
public void testDataEntry() {
MemberManager dataObjectManager = new MemberManager(memberDB, memberDBFormat);
//create new member
Member dataObject1 = new Member("Dev Patel", "F42563743156", 150);
try {
dataObjectManager.addMember(dataObject1);
} catch (AppException ex) {
//Logger.getLogger(TestMember.class.getName()).log(Level.SEVERE, null, ex);
}
Member dataObject2 = new Member("David Boyle", "X437F356", 250);
try {
dataObjectManager.addMember(dataObject2);
} catch (AppException ex) {
//Logger.getLogger(TestMember.class.getName()).log(Level.SEVERE, null, ex);
}
Member dataObject3 = new Member("Freida Pinto","R64565FG4",-1);
try {
dataObjectManager.addMember(dataObject3);
} catch (AppException ex) {
//Logger.getLogger(TestMember.class.getName()).log(Level.SEVERE, null, ex);
}
dataObjectManager = null;