springboot-junit 测试

	<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-test</artifactId>
		</dependency>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.12</version>
			<scope>test</scope>
		</dependency>
@SpringBootTest
@RunWith(SpringRunner.class)
public class EWTBalanceServiceTest {

    @Autowired
    private EWTBalanceService ewtBalanceService;

    @Test
    public void insertEWT() {
        EwtBalance ewtBalance = ewtBalanceService.selectEGroupCheckFile();
    }

    @Test
    public void selectEGroupCheckFile() {
    }

    @Test
    public void insertEWCheckFile() {
    }

    @Test
    public void getIdentityId() {
    }

    @Test
    public void getDate() {
    }
}
上一篇:SpringBoot单元测试


下一篇:Junit简单使用记录