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