JAVA-13636 Minor cleanup

This commit is contained in:
Dhawal Kapil 2022-08-28 20:42:59 +05:30
parent bf888fc637
commit 523e01a343
2 changed files with 10 additions and 11 deletions

View File

@ -58,7 +58,6 @@
</build>
<properties>
<spring-boot.version>2.6.4</spring-boot.version>
<spring-framework.version>5.3.20</spring-framework.version>
<!-- testing -->
<mockito.version>4.6.1</mockito.version>

View File

@ -28,17 +28,17 @@ import com.baeldung.junit5.mockito.service.UserService;
@ExtendWith(MockitoExtension.class)
class UserServiceUnitTest {
UserService userService;
SettingRepository settingRepository;
@Mock
UserRepository userRepository;
@Mock
MailClient mailClient;
private UserService userService;
User user;
private SettingRepository settingRepository;
@Mock
private UserRepository userRepository;
@Mock
private MailClient mailClient;
private User user;
@BeforeEach
void init(@Mock SettingRepository settingRepository) {