INT-3416 Reset SMS.copyOnGet By Default

JIRA: https://jira.spring.io/browse/INT-3416

Fix the `SimpleMessageStoreTests`
This commit is contained in:
Artem Bilan
2014-06-17 23:15:41 +03:00
parent 117669fb9a
commit e8599c5541

View File

@@ -110,6 +110,7 @@ public class SimpleMessageStoreTests {
@Test
public void shouldCopyMessageGroup() throws Exception {
SimpleMessageStore store = new SimpleMessageStore();
store.setCopyOnGet(true);
Message<String> testMessage1 = MessageBuilder.withPayload("foo").build();
store.addMessageToGroup("bar", testMessage1);
assertNotSame(store.getMessageGroup("bar"), store.getMessageGroup("bar"));