From 9b20e2efd8565ed932c63157bf0db1c96e5c5bd6 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Mon, 13 Apr 2020 15:28:17 +0200 Subject: [PATCH] sinttest: signal failure if geoloc element does not match --- .../smackx/geolocation/GeolocationIntegrationTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/smack-integration-test/src/main/java/org/jivesoftware/smackx/geolocation/GeolocationIntegrationTest.java b/smack-integration-test/src/main/java/org/jivesoftware/smackx/geolocation/GeolocationIntegrationTest.java index 2707a5435..32f1d32b3 100644 --- a/smack-integration-test/src/main/java/org/jivesoftware/smackx/geolocation/GeolocationIntegrationTest.java +++ b/smack-integration-test/src/main/java/org/jivesoftware/smackx/geolocation/GeolocationIntegrationTest.java @@ -84,6 +84,8 @@ public class GeolocationIntegrationTest extends AbstractSmackIntegrationTest { public void onPepEvent(EntityBareJid jid, GeoLocation geoLocation, String id, Message message) { if (geoLocation.equals(geoLocation1)) { geoLocationReceived.signal(); + } else { + geoLocationReceived.signalFailure("Received non matching GeoLocation"); } } };