import cn.reghao.devops.manager.ManagerApplication; import cn.reghao.devops.manager.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 = ManagerApplication.class) @RunWith(SpringRunner.class) public class AccountTest { @Autowired AccountService accountService; @Test public void createUserAccount() { } }