Example usage for org.springframework.integration.jdbc StoredProcExecutor getStoredProcedureName

List of usage examples for org.springframework.integration.jdbc StoredProcExecutor getStoredProcedureName

Introduction

In this page you can find the example usage for org.springframework.integration.jdbc StoredProcExecutor getStoredProcedureName.

Prototype

public String getStoredProcedureName() 

Source Link

Usage

From source file:org.springframework.integration.jdbc.StoredProcExecutorTests.java

@Test
public void testGetStoredProcedureNameExpressionAsString2() throws Exception {

    DataSource datasource = mock(DataSource.class);
    StoredProcExecutor storedProcExecutor = new StoredProcExecutor(datasource);

    storedProcExecutor.setStoredProcedureName("123");
    storedProcExecutor.setBeanFactory(mock(BeanFactory.class));
    storedProcExecutor.afterPropertiesSet();

    assertEquals("123", storedProcExecutor.getStoredProcedureName());
    assertEquals("123", storedProcExecutor.getStoredProcedureNameExpressionAsString());
}