|
|
@@ -29,15 +29,15 @@ import java.util.List;
|
|
|
@AutoConfigureMockMvc
|
|
|
public class UserInfoServiceTest {
|
|
|
@Autowired
|
|
|
- private UserInfoRepository userInfoRepository;
|
|
|
+ private UserInfoRepository userInfoRepository;
|
|
|
@Autowired
|
|
|
- private StorageService storageService;
|
|
|
+ private StorageService storageService;
|
|
|
@Autowired
|
|
|
- private UserInfoService userInfoService;
|
|
|
+ private UserInfoService userInfoService;
|
|
|
@Autowired
|
|
|
private AuthorityRepository authorityRepository;
|
|
|
@Autowired
|
|
|
- private ApplicationContext applicationContext;
|
|
|
+ private ApplicationContext applicationContext;
|
|
|
|
|
|
@Test
|
|
|
public void loadUserByUsername() {
|
|
|
@@ -98,4 +98,9 @@ public class UserInfoServiceTest {
|
|
|
process = new ProcessBuilder("open", ImageUtils.makeMarker("location", userInfo.getAvatar())).start();
|
|
|
process.waitFor();
|
|
|
}
|
|
|
+
|
|
|
+ @Test
|
|
|
+ public void testUpdateUserPrice() {
|
|
|
+ userInfoService.updateUserPrice(new UpdatePriceEvent(this, 2757L, null));
|
|
|
+ }
|
|
|
}
|