commit
a548a318ba
@ -0,0 +1,44 @@
|
|||||||
|
package cn.estsh.i3plus.core.apiservice.serviceimpl.busi;
|
||||||
|
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.core.api.iservice.busi.IPositionService;
|
||||||
|
import org.junit.After;
|
||||||
|
import org.junit.Before;
|
||||||
|
import org.junit.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 org.springframework.test.context.web.WebAppConfiguration;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :
|
||||||
|
* @Reference :
|
||||||
|
* @Author : wei.peng
|
||||||
|
* @Date : 2018-10-29 19:12
|
||||||
|
* @Modify :
|
||||||
|
**/
|
||||||
|
@SpringBootTest
|
||||||
|
@WebAppConfiguration
|
||||||
|
@RunWith(SpringRunner.class)
|
||||||
|
public class TestBase {
|
||||||
|
|
||||||
|
@Before
|
||||||
|
public void init() {
|
||||||
|
System.out.println("开始测试-----------------");
|
||||||
|
}
|
||||||
|
|
||||||
|
@After
|
||||||
|
public void after() {
|
||||||
|
System.out.println("测试结束-----------------");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IPositionService positionService;
|
||||||
|
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test1(){
|
||||||
|
System.out.println(positionService);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,27 @@
|
|||||||
|
//package cn.estsh.i3plus.core.apiservice.serviceimpl.busi;
|
||||||
|
//
|
||||||
|
//import cn.estsh.i3plus.core.api.iservice.busi.IPositionService;
|
||||||
|
//import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
//import org.springframework.boot.test.context.SpringBootTest;
|
||||||
|
//import org.springframework.test.context.junit4.SpringRunner;
|
||||||
|
//
|
||||||
|
///**
|
||||||
|
// * @Description :
|
||||||
|
// * @Reference :
|
||||||
|
// * @Author : wei.peng
|
||||||
|
// * @Date : 2018-10-29 19:02
|
||||||
|
// * @Modify :
|
||||||
|
// **/
|
||||||
|
//@RunWith(SpringRunner.class)
|
||||||
|
//@SpringBootTest(classes = {cn.estsh.ImppGo.class})
|
||||||
|
//public class TestPositionServiceImpl {
|
||||||
|
//
|
||||||
|
// @Autowired
|
||||||
|
// private IPositionService positionService;
|
||||||
|
//
|
||||||
|
// @Test
|
||||||
|
// public void test1(){
|
||||||
|
// System.out.println(positionService);
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
//}
|
Loading…
Reference in New Issue