---修复callservice无法正常调用bug
This commit is contained in:
@ -0,0 +1,25 @@
|
||||
package com.xjrsoft;
|
||||
|
||||
import org.junit.jupiter.api.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 com.xjrsoft.module.common.db.service.CommonCallService;
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(classes = ITCDemoApplication.class)
|
||||
public class CallTest {
|
||||
|
||||
// 注入待测试的服务
|
||||
@Autowired
|
||||
private CommonCallService callService;
|
||||
|
||||
|
||||
@Test
|
||||
public void testCallSave() {
|
||||
String out = callService.saveAfter("Ing_b_price_term", 12);
|
||||
System.out.println(out);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user