36 lines
952 B
Java
36 lines
952 B
Java
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));
|
|
}
|
|
|
|
|
|
}
|