Minor change, simulated a client connect to avoid staktrace in log
This commit is contained in:
+3
-2
@@ -517,6 +517,9 @@ public class ProtocolProcessorTest {
|
|||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testCleanRetainedStoreAfterAQoS0AndRetainedTrue() {
|
public void testCleanRetainedStoreAfterAQoS0AndRetainedTrue() {
|
||||||
|
//force a connect
|
||||||
|
connMsg.setClientID("Publisher");
|
||||||
|
m_processor.processConnect(m_session, connMsg);
|
||||||
//prepare and existing retained store
|
//prepare and existing retained store
|
||||||
ByteBuffer payload = ByteBuffer.allocate(5).put("Hello".getBytes());
|
ByteBuffer payload = ByteBuffer.allocate(5).put("Hello".getBytes());
|
||||||
PublishEvent pubEvt = new PublishEvent(FAKE_TOPIC, AbstractMessage.QOSType.LEAST_ONE, payload, true, "Publisher");
|
PublishEvent pubEvt = new PublishEvent(FAKE_TOPIC, AbstractMessage.QOSType.LEAST_ONE, payload, true, "Publisher");
|
||||||
@@ -527,8 +530,6 @@ public class ProtocolProcessorTest {
|
|||||||
m_processor.processPublish(cleanPubEvt);
|
m_processor.processPublish(cleanPubEvt);
|
||||||
|
|
||||||
//Verify
|
//Verify
|
||||||
// List<PublishEvent> retainedPublishes = m_storageService.retrievePersistedPublishes("Publisher");
|
|
||||||
|
|
||||||
Collection<HawtDBPersistentStore.StoredMessage> messages = m_storageService.searchMatching(new IMatchingCondition() {
|
Collection<HawtDBPersistentStore.StoredMessage> messages = m_storageService.searchMatching(new IMatchingCondition() {
|
||||||
public boolean match(String key) {
|
public boolean match(String key) {
|
||||||
return SubscriptionsStore.matchTopics(key, FAKE_TOPIC);
|
return SubscriptionsStore.matchTopics(key, FAKE_TOPIC);
|
||||||
|
|||||||
Reference in New Issue
Block a user