Esempio n. 1
0
 /** Member Table Select User Test selectMemberById selectMemberByNo selectMember */
 @Test
 @Transactional(readOnly = true)
 public void selectUserTest() throws SPayException {
   //		memberDAO.insertMember(members.get("mykumi1"));
   Member seletedMember = memberDAO.selectMemberById(members.get("mykumi1").getId());
   isSameMember(members.get("mykumi1"), seletedMember);
   isSameMember(members.get("mykumi1"), memberDAO.selectMemberByNo(seletedMember.getNo()));
   isSameMember(members.get("mykumi1"), memberDAO.selectMember(seletedMember));
 }
Esempio n. 2
0
 // Member Table Delete Test
 @Test
 public void deleteUserTest() throws SPayException {
   assertThat(memberDAO.insertMember(members.get("mykumi1")), is(1));
   assertThat(memberDAO.deleteMember(members.get("mykumi1")), is(1));
   assertThat(memberDAO.deleteMember(members.get("mykumi1")), is(0));
 }