package com.casic.missiles.service.Impl.system;

import com.casic.missiles.dto.ReturnDTO;
import com.casic.missiles.dto.system.SignDetailResponse;
import com.casic.missiles.service.system.ISystemSignService;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;

@RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class SystemSignServiceImplTest {
    @Resource
    private ISystemSignService signService;

    @Test
    public void signDetail() {
        ReturnDTO<SignDetailResponse> signDetailResponse = signService.signDetail(1599672454222217217l);
        Assert.assertEquals("请求失败", Integer.valueOf(200), signDetailResponse.getCode());
        SignDetailResponse data = signDetailResponse.getData();
        Assert.assertEquals("id不等", Long.valueOf(1599672454222217217l), data.getId());
    }
}