Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
Feat: Add membercounter
Browse files Browse the repository at this point in the history
  • Loading branch information
Lefeverw committed Oct 2, 2023
1 parent d4fdb66 commit 0873e54
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import be.informatievlaanderen.vsds.demonstrator.member.domain.member.entities.Member;
import be.informatievlaanderen.vsds.demonstrator.member.domain.member.repositories.MemberRepository;
import be.informatievlaanderen.vsds.demonstrator.member.rest.websocket.MessageController;
import be.informatievlaanderen.vsds.demonstrator.member.rest.websocket.WebSocketConfig;
import org.apache.jena.rdf.model.Model;
import org.apache.jena.riot.Lang;
import org.apache.jena.riot.RDFParser;
Expand Down Expand Up @@ -140,6 +139,13 @@ void test_saveMember() throws IOException {
verify(repository).saveMember(argThat(result -> result.getMemberId().equals(id)));
}

@Test
void test_getNumberOfMembers() {
service.getNumberOfMembers();

verify(repository).getNumberOfMembers();
}

private List<Member> initMembers() throws ParseException {
final WKTReader reader = new WKTReader();
List<Member> members = new ArrayList<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,13 @@ void test_Saving() {
verify(jpaRepository).save(argThat(entity -> entity.getMemberId().equals(member.getMemberId())));
}

@Test
void test_NumberCount(){
repository.getNumberOfMembers();

verify(jpaRepository).count();
}

private List<MemberEntity> initMembers() throws ParseException {
final WKTReader reader = new WKTReader();
List<MemberEntity> members = new ArrayList<>();
Expand Down

0 comments on commit 0873e54

Please sign in to comment.