1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-22 06:12:05 +01:00

sinttest: signal failure if geoloc element does not match

This commit is contained in:
Florian Schmaus 2020-04-13 15:28:17 +02:00
parent 6d9936a0a6
commit 9b20e2efd8

View file

@ -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");
}
}
};