import org.junit.After; import org.junit.Before; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.IntegrationTest; import org.springframework.boot.test.SpringApplicationConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.test.context.web.WebAppConfiguration; import org.subethamail.wiser.Wiser; @RunWith(SpringJUnit4ClassRunner.class) @SpringApplicationConfiguration(classes = {MyApp.class}) @WebAppConfiguration @IntegrationTest public class HireProcessTest { @Autowired private RuntimeService runtimeService; @Autowired private TaskService taskService; @Autowired private HistoryService historyService; @Autowired private ApplicantRepository applicantRepository; private Wiser wiser; @Before public void setup() { wiser = new Wiser(); wiser.setPort(1025); wiser.start(); } @After public void cleanup() { wiser.stop(); } }
一个测试类的搭建
博客围绕测试类的搭建展开,但具体内容缺失,推测会涉及测试类搭建的相关信息技术内容,如搭建步骤、使用工具等。

被折叠的 条评论
为什么被折叠?



