@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest(classes = AccountPlatApplication.class) //AccountPlatApplication 为启动类
public class NCTest2 {
@Autowired
private NcService ncService; //注入调用方法所在的类
@Test
public void test1() { //执行方法
ncService.enterAccount();
}
}