Java 类org.springframework.jdbc.datasource.SmartDataSource 实例源码

项目:micro-server    文件:DistributedLockServiceMySqlImplTest.java   
@Test
public void setDataSource() {
    service.setSmartDataSource(mock(SmartDataSource.class));
    assertThat(service.jdbcTemplate, not(template));
}