Example usage for org.springframework.jdbc.core JdbcTemplate isIgnoreWarnings

List of usage examples for org.springframework.jdbc.core JdbcTemplate isIgnoreWarnings

Introduction

In this page you can find the example usage for org.springframework.jdbc.core JdbcTemplate isIgnoreWarnings.

Prototype

public boolean isIgnoreWarnings() 

Source Link

Document

Return whether or not we ignore SQLWarnings.

Usage

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());
}