标签:ring throws ssr ice more spring web red end
Java新手 纯记录
@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest(classes = OutDemoApplication.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@Slf4j
public class ServiceTest extends TestCase {
@Autowired
private DemoService demoService;
@BeforeClass
public static void init() {
//初始化一些东西 比如环境变量
}
@Test
public void Test1() throws ParseException {
DemoReq demoReq = new DemoReq();
demoService.dosomething(demoReq);
}
}
标签:ring throws ssr ice more spring web red end
原文地址:https://www.cnblogs.com/cqvoip/p/9728866.html