You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
948 B
32 lines
948 B
2 years ago
|
import com.jianshui.JianshuiApplication;
|
||
|
import com.jianshui.invoice.task.InvoiceBackTask;
|
||
|
import lombok.extern.slf4j.Slf4j;
|
||
|
import org.junit.Test;
|
||
|
import org.junit.runner.RunWith;
|
||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||
|
import org.springframework.boot.test.context.SpringBootTest;
|
||
|
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||
|
import org.springframework.test.context.web.WebAppConfiguration;
|
||
|
|
||
|
/**
|
||
|
* @author kk
|
||
|
* @date 2023年10月28日 11:13
|
||
|
* 重汽回调定时任务测试
|
||
|
*/
|
||
|
@RunWith(SpringJUnit4ClassRunner.class) // SpringJUnit支持,由此引入Spring-Test框架支持!
|
||
|
@SpringBootTest(classes = JianshuiApplication.class) // 指定我们SpringBoot工程的Application启动类
|
||
|
@WebAppConfiguration
|
||
|
@Slf4j
|
||
|
public class ExportVehicleTest {
|
||
|
|
||
|
@Autowired
|
||
|
private InvoiceBackTask invoiceBackTask;
|
||
|
|
||
|
|
||
|
@Test
|
||
|
public void test(){
|
||
|
invoiceBackTask.bkParams("2");
|
||
|
}
|
||
|
|
||
|
}
|