Skip to content

Commit

Permalink
add bean mock
Browse files Browse the repository at this point in the history
  • Loading branch information
xwandi committed Oct 31, 2023
1 parent d26759c commit ae339b5
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -29,6 +30,8 @@ class ChildServiceImplTest {
private DtoConverter dtoConverter;
@Mock
private UserService userService;
@Mock
private GenderRepository genderRepository;

@InjectMocks
private ChildServiceImpl childService;
Expand Down

0 comments on commit ae339b5

Please sign in to comment.