@Test public void shouldNotSetDetachedForNewEntries() { memberService.syncMembers(); Optional<MembershipEntryEntity> entry = membershipRepository.findFirstByMemberIdAndGroupIdOrderByDateDesc("member1", "group1"); assertThat(entry).isPresent(); assertThat(entry.get().getEvent()).isEqualTo(MembershipEntryEntity.Event.ATTACHED); assertThat(entry.get().getDate()).isEqualTo(LocalDate.now()); }
public void syncMembers() { log.info("> Sync members"); syncLocalMembers(); syncRemoteMembers(); log.info("< Synced members"); }
MemberService { public void syncMembers() { log.info("> Sync members"); syncLocalMembers(); syncRemoteMembers(); log.info("< Synced members"); } }
MemberService { public void syncMembers() { log.info("> Sync members"); syncLocalMembers(); syncRemoteMembers(); log.info("< Synced members"); }  }
MemberService { public void syncMembers() { log.info("> Sync members"); syncLocalMembers(); syncRemoteMembers(); log.info("< Synced members"); }  void syncMembers(); List<Member> groupMembers(String groupId); List<Member> groupMembers(String groupId, LocalDate form, LocalDate to); List<GroupLightModel> memberGroups(String memberId); List<GroupLightModel> memberGroups(String memberId, LocalDate form, LocalDate to); Map<String, Long> getIntegrationsSummary(); }
MemberService { public void syncMembers() { log.info("> Sync members"); syncLocalMembers(); syncRemoteMembers(); log.info("< Synced members"); }  void syncMembers(); List<Member> groupMembers(String groupId); List<Member> groupMembers(String groupId, LocalDate form, LocalDate to); List<GroupLightModel> memberGroups(String memberId); List<GroupLightModel> memberGroups(String memberId, LocalDate form, LocalDate to); Map<String, Long> getIntegrationsSummary();  }