Пример #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));
 }
Пример #2
0
 /**
  * compare two member Object
  *
  * @param seedMember
  * @param selectedMember
  */
 private void isSameMember(Member seedMember, Member selectedMember) {
   assertThat(seedMember.getId(), is(seedMember.getId()));
   assertThat(seedMember.getName(), is(seedMember.getName()));
   assertThat(seedMember.getPassword(), is(seedMember.getPassword()));
 }