ProtocolProcessorTest#testCleanRetainedStoreAfterAQoS0AndRetainedTrue:

check added if test is in the correct state
This commit is contained in:
Andreas Mager
2017-01-30 16:07:16 +01:00
parent 1c64186a00
commit 94475d2b04
@@ -462,6 +462,13 @@ public class ProtocolProcessorTest {
.build();
m_processor.processPublish(m_channel, msg);
Collection<IMessagesStore.StoredMessage> messages = m_messagesStore.searchMatching(new IMatchingCondition() {
public boolean match(String key) {
return SubscriptionsStore.matchTopics(key, FAKE_TOPIC);
}
});
assertFalse(messages.isEmpty());
//Exercise
MqttPublishMessage cleanPubMsg = MessageBuilder.publish()
.topicName(FAKE_TOPIC)
@@ -473,7 +480,7 @@ public class ProtocolProcessorTest {
m_processor.processPublish(m_channel, cleanPubMsg);
//Verify
Collection<IMessagesStore.StoredMessage> messages = m_messagesStore.searchMatching(new IMatchingCondition() {
messages = m_messagesStore.searchMatching(new IMatchingCondition() {
public boolean match(String key) {
return SubscriptionsStore.matchTopics(key, FAKE_TOPIC);
}