RESOLVED - issue INT-1010: Implement JdbcMessageStore
http://jira.springframework.org/browse/INT-1010 RESOLVED - issue INT-1050: MessageStore: get message by ID http://jira.springframework.org/browse/INT-1050 RESOLVED - issue INT-1099: Use UUID as primary key in JdbcMessageStore http://jira.springframework.org/browse/INT-1099
This commit is contained in:
@@ -12,10 +12,8 @@ import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.integration.core.Message;
|
||||
import org.springframework.integration.message.MessageBuilder;
|
||||
import org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
@@ -26,17 +24,12 @@ public class JdbcMessageStoreTests {
|
||||
|
||||
@Autowired
|
||||
private DataSource dataSource;
|
||||
|
||||
@Autowired
|
||||
@Qualifier("messageIncrementer")
|
||||
private DataFieldMaxValueIncrementer messageIncrementer;
|
||||
|
||||
|
||||
private JdbcMessageStore messageStore;
|
||||
|
||||
@Before
|
||||
public void init() {
|
||||
messageStore = new JdbcMessageStore(dataSource, messageIncrementer);
|
||||
messageStore = new JdbcMessageStore(dataSource);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -22,15 +22,4 @@
|
||||
<property name="dataSource" ref="dataSource" />
|
||||
</bean>
|
||||
|
||||
<bean id="incrementerParent" class="${int.database.incrementer.class}"
|
||||
abstract="true">
|
||||
<property name="dataSource" ref="dataSource" />
|
||||
<property name="columnName" value="ID" />
|
||||
</bean>
|
||||
|
||||
<bean id="messageIncrementer" parent="incrementerParent">
|
||||
<property name="incrementerName" value="INT_MESSAGE_SEQ" />
|
||||
</bean>
|
||||
|
||||
|
||||
</beans>
|
||||
|
||||
Reference in New Issue
Block a user