JAVA-13636 Minor cleanup
This commit is contained in:
parent
bf888fc637
commit
523e01a343
|
@ -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>
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue