2 changed files with 44 additions and 5 deletions
@ -0,0 +1,36 @@ |
|||||
|
package cn.chjyj.szwh.service.impl; |
||||
|
|
||||
|
import cn.chjyj.szwh.service.GoodsTaskService; |
||||
|
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 static org.junit.Assert.*; |
||||
|
|
||||
|
/** |
||||
|
* 商品服务任务测试用例 |
||||
|
*/ |
||||
|
@SpringBootTest |
||||
|
@RunWith(SpringJUnit4ClassRunner.class) |
||||
|
public class GoodsTaskServiceImplTest { |
||||
|
@Autowired |
||||
|
private GoodsTaskService goodsTaskService; |
||||
|
|
||||
|
/** |
||||
|
* 获取撤销数据 |
||||
|
*/ |
||||
|
@Test |
||||
|
public void getRevocationGoods() { |
||||
|
goodsTaskService.getRevocationGoods(); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询撤销数据 |
||||
|
*/ |
||||
|
@Test |
||||
|
public void queryRevocationGoods() { |
||||
|
goodsTaskService.queryRevocationGoods(); |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue