import cn.hutool.core.date.DateUnit; import cn.hutool.core.date.DateUtil; import com.newfiber.termite.NewfiberTermiteApplication; import com.newfiber.termite.domain.Termite; import com.newfiber.termite.mapper.TermiteMapper; import java.util.Date; import javax.annotation.Resource; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; @SpringBootTest(classes = NewfiberTermiteApplication.class) @RunWith(SpringRunner.class) public class ServiceTest { @Resource private TermiteMapper termiteMapper; @Test public void uploadTest(){ // termiteMapper.addtermiteData("ANT231031002", DateUtil.formatDateTime(new Date()),"1",new Date(),"123","123","123","123","123","123","123","123"); termiteMapper.updatephotoIdentify("2959", "2", "123"); } }