7 changed files with 93 additions and 20 deletions
@ -0,0 +1,41 @@ |
|||
package cn.chjyj.szwh.service; |
|||
|
|||
import cn.chjyj.szwh.bean.Goods; |
|||
import cn.chjyj.szwh.mapper.GoodsMapper; |
|||
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.SpringRunner; |
|||
|
|||
import java.util.List; |
|||
|
|||
import static org.junit.Assert.*; |
|||
|
|||
@SpringBootTest |
|||
@RunWith(SpringRunner.class) |
|||
public class GoodsServiceTest { |
|||
@Autowired |
|||
private GoodsService goodsService; |
|||
|
|||
@Test |
|||
public void getGoodsList() { |
|||
} |
|||
|
|||
@Test |
|||
public void getGoodsByIsli() { |
|||
} |
|||
|
|||
@Test |
|||
public void getApiGoods() { |
|||
} |
|||
|
|||
@Test |
|||
public void getMapDataByTyep() { |
|||
int type=1; |
|||
List<Goods> glist = goodsService.getMapDataByTyep(type); |
|||
for(Goods g:glist){ |
|||
System.out.println(g.getGoodsDetailId()); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue