List of usage examples for org.springframework.jdbc.core JdbcTemplate isIgnoreWarnings
public boolean isIgnoreWarnings()
From source file:org.springframework.jdbc.core.JdbcTemplateTests.java
public void testBeanProperties() throws Exception { replay();/*from w ww . java 2 s .co m*/ JdbcTemplate template = new JdbcTemplate(mockDataSource); assertTrue("datasource ok", template.getDataSource() == mockDataSource); assertTrue("ignores warnings by default", template.isIgnoreWarnings()); template.setIgnoreWarnings(false); assertTrue("can set NOT to ignore warnings", !template.isIgnoreWarnings()); }