Assert.assertFalse(triples.hasNext());
}
public void testOnlyIgnoreErrorStanzas() throws Exception {
RecordingStanzaRelay relay = new RecordingStanzaRelay();
ReturnErrorToSenderFailureStrategy strategy = new ReturnErrorToSenderFailureStrategy(relay);
Stanza stanza = XMPPCoreStanza.getWrapper(StanzaBuilder.createMessageStanza(FROM, TO, LANG, BODY)
.addAttribute("type", "error")
.build());
strategy.process(stanza, Arrays.asList((DeliveryException)new RemoteServerNotFoundException()));
Assert.assertFalse(relay.iterator().hasNext());
}