import cn.reghao.oss.console.OssConsoleApplication;
import cn.reghao.oss.console.account.service.AccountService;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * @author reghao
 * @date 2022-08-17 15:53:04
 */
@Slf4j
@ActiveProfiles("dev")
@SpringBootTest(classes = OssConsoleApplication.class)
@RunWith(SpringRunner.class)
public class OssConsoleTest {
    @Autowired
    AccountService accountService;

    @Test
    public void createUserAccount() {
        int userId = 1;
        String newPassword = "1234567890";
        accountService.updateAccountPassword(userId, newPassword);
    }
}
