需要 spring-test 和 junit

 

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration({ "classpath:spring.xml" })
public class ZkdgTest {
    @Before
    public void init() {
        // 在运行测试之前的业务代码
    }

    @After
    public void after() {
        // 在测试完成之后的业务代码
    }

    @Autowired
    private PaperServiceImpl paperService;

    @Test
    public void doTest() {
        List<String> kpids = new ArrayList<>();
        kpids.add("5");
        kpids.add("6");
        paperService.getQIds(6, 1, kpids);
    }
}

 

相关文章:

  • 2022-12-23
  • 2021-11-23
  • 2021-09-08
  • 2021-09-06
  • 2021-12-21
  • 2021-05-03
  • 2021-12-25
猜你喜欢
  • 2021-08-19
  • 2022-12-23
  • 2022-12-23
  • 2022-02-18
  • 2022-12-23
  • 2021-11-13
  • 2021-05-30
相关资源
相似解决方案