Commit 59156e5f authored by 季圣华's avatar 季圣华
Browse files

增加test测试类

parent 9e5f7f1e
package com.jsh.erp;
import com.alibaba.fastjson.JSON;
import com.jsh.erp.datasource.entities.Depot;
import com.jsh.erp.service.depot.DepotService;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import javax.annotation.Resource;
import java.util.List;
@Slf4j
@RunWith(SpringRunner.class)
@SpringBootTest
public class DepotTest {
@Resource
private DepotService depotService;
@Test
public void getDepot() throws Exception{
Depot result = depotService.getDepot(1l);
log.info("depot result:" + JSON.toJSONString(result));
}
@Test
public void getAllList() throws Exception{
List<Depot> depotList =depotService.getAllList();
log.info("depot result:" + JSON.toJSONString(depotList));
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment