package com.bcxin.bi; import com.bcxin.bi.service.ViewService; import org.junit.Test; import org.junit.runner.RunWith; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; import javax.annotation.Resource; /** * 测试 */ @RunWith(SpringRunner.class) @SpringBootTest public class ApplicationTests { private static final Logger log = LoggerFactory.getLogger(ApplicationTests.class); @Resource private ViewService viewService; /** * 测试增删改查 */ @Test public void test() { //// 核心数据库中的用户id=1 //System.out.println("申报查询:"+ userService.findAll().get(1).getUsername()); // //// biz数据库中的用户id=1 //System.out.println("审批查询:"+ userService.findall2().get(1).getUsername()); } }