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> </build>
<properties> <properties>
<spring-boot.version>2.6.4</spring-boot.version>
<spring-framework.version>5.3.20</spring-framework.version> <spring-framework.version>5.3.20</spring-framework.version>
<!-- testing --> <!-- testing -->
<mockito.version>4.6.1</mockito.version> <mockito.version>4.6.1</mockito.version>

View File

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