Test1 类一定放到包下面
import cn.nec.exp.base.service.UserDataFilterService;
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 javax.annotation.Resource;
@RunWith(SpringRunner.class)
@SpringBootTest
public class Test1 {
@Resource
UserDataFilterService userDataFilterService;
@Test
public void testQuery(){
boolean flg = userDataFilterService.checkLocationAuth(2938067945227266l, 100510000177544l);
System.out.println(flg);
}
}
网友评论