List of usage examples for org.springframework.integration.jdbc StoredProcExecutor getStoredProcedureNameExpressionAsString
public String getStoredProcedureNameExpressionAsString()
From source file:org.springframework.integration.jdbc.StoredProcExecutorTests.java
@Test public void testGetStoredProcedureNameExpressionAsString() throws Exception { DataSource datasource = mock(DataSource.class); StoredProcExecutor storedProcExecutor = new StoredProcExecutor(datasource); final ExpressionFactoryBean efb = new ExpressionFactoryBean("headers['stored_procedure_name']"); efb.afterPropertiesSet();/*from w w w .j a v a2 s . c om*/ final Expression expression = efb.getObject(); storedProcExecutor.setStoredProcedureNameExpression(expression); storedProcExecutor.setBeanFactory(mock(BeanFactory.class)); storedProcExecutor.afterPropertiesSet(); assertEquals("headers['stored_procedure_name']", storedProcExecutor.getStoredProcedureNameExpressionAsString()); }
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()); }