TestData.java 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import com.warewms.WarewmsApplication;
  2. import com.warewms.common.core.controller.BaseController;
  3. import com.warewms.common.core.domain.entity.SysDictData;
  4. import com.warewms.common.core.domain.entity.SysDictType;
  5. import com.warewms.common.core.domain.entity.SysUser;
  6. import com.warewms.common.utils.poi.ExcelUtil;
  7. import com.warewms.system.service.ISysDictDataService;
  8. import com.warewms.system.service.ISysDictTypeService;
  9. import com.warewms.system.service.ISysNoticeService;
  10. import com.warewms.system.service.ISysUserService;
  11. import lombok.extern.slf4j.Slf4j;
  12. import org.junit.runner.RunWith;
  13. import org.springframework.beans.factory.annotation.Autowired;
  14. import org.junit.Test;
  15. import org.junit.runner.RunWith;
  16. import org.springframework.boot.test.context.SpringBootTest;
  17. import org.springframework.test.context.junit4.SpringRunner;
  18. import javax.servlet.http.HttpServletResponse;
  19. import java.util.List;
  20. @RunWith(SpringRunner.class)
  21. @SpringBootTest(classes = WarewmsApplication.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
  22. @Slf4j
  23. public class TestData extends BaseController<SysDictType> {
  24. @Autowired
  25. private ISysUserService userService;
  26. @Autowired
  27. private ISysDictDataService dictDataService;
  28. @Autowired
  29. private ISysDictTypeService dictTypeService;
  30. @Test
  31. public void export()
  32. {
  33. List<SysDictType> list = dictTypeService.selectDictTypeList(new SysDictType());
  34. log.info("输出结果{}",list);
  35. }
  36. }