From ae339b54a25c454ebbbe54068d7747129d4e1afa Mon Sep 17 00:00:00 2001 From: xwandi Date: Tue, 31 Oct 2023 10:25:21 +0100 Subject: [PATCH] add bean mock --- .../com/softserve/teachua/service/ChildServiceImplTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/java/com/softserve/teachua/service/ChildServiceImplTest.java b/src/test/java/com/softserve/teachua/service/ChildServiceImplTest.java index d54e3423..6713aba3 100644 --- a/src/test/java/com/softserve/teachua/service/ChildServiceImplTest.java +++ b/src/test/java/com/softserve/teachua/service/ChildServiceImplTest.java @@ -7,6 +7,7 @@ import com.softserve.teachua.model.Child; import com.softserve.teachua.model.User; import com.softserve.teachua.repository.ChildRepository; +import com.softserve.teachua.repository.GenderRepository; import com.softserve.teachua.service.impl.ChildServiceImpl; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; @@ -29,6 +30,8 @@ class ChildServiceImplTest { private DtoConverter dtoConverter; @Mock private UserService userService; + @Mock + private GenderRepository genderRepository; @InjectMocks private ChildServiceImpl childService;