3 changed files with 34 additions and 3 deletions
@ -0,0 +1,24 @@ |
|||
package cn.chjyj.szwh.mapper; |
|||
|
|||
import cn.chjyj.szwh.bean.GoodsDetail; |
|||
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 static org.junit.Assert.*; |
|||
|
|||
@SpringBootTest |
|||
@RunWith(SpringRunner.class) |
|||
public class GoodsDetailMapperTest { |
|||
@Autowired |
|||
private GoodsDetailMapper goodsDetailMapper; |
|||
|
|||
@Test |
|||
public void getGoodsDetailBygid() { |
|||
int gdid=1; |
|||
GoodsDetail goodsDetail = goodsDetailMapper.getGoodsDetailBygid(gdid); |
|||
System.out.println(goodsDetail.getGoodsName()); |
|||
} |
|||
} |
|||
Loading…
Reference in new issue