Search in sources :

Example 1 with GeocodingFinishedRemoteEvent

use of org.opennms.features.poller.remote.gwt.client.remoteevents.GeocodingFinishedRemoteEvent in project opennms by OpenNMS.

the class SerializationTest method testEvents.

@Test
public void testEvents() throws Exception {
    final ApplicationUpdatedRemoteEvent aure = new ApplicationUpdatedRemoteEvent(getApplicationInfo());
    writer.writeObject(aure);
    final GeocodingUpdatingRemoteEvent gure = new GeocodingUpdatingRemoteEvent(0, 15);
    writer.writeObject(gure);
    final GeocodingFinishedRemoteEvent gfre = new GeocodingFinishedRemoteEvent(15);
    writer.writeObject(gfre);
    final LocationUpdatedRemoteEvent lure = new LocationUpdatedRemoteEvent(getLocationInfo());
    writer.writeObject(lure);
    Collection<LocationInfo> locations = new ArrayList<LocationInfo>();
    locations.add(getLocationInfo());
    final LocationsUpdatedRemoteEvent lsure = new LocationsUpdatedRemoteEvent(locations);
    writer.writeObject(lsure);
    final UpdateCompleteRemoteEvent ucre = new UpdateCompleteRemoteEvent();
    writer.writeObject(ucre);
}
Also used : UpdateCompleteRemoteEvent(org.opennms.features.poller.remote.gwt.client.remoteevents.UpdateCompleteRemoteEvent) ArrayList(java.util.ArrayList) LocationsUpdatedRemoteEvent(org.opennms.features.poller.remote.gwt.client.remoteevents.LocationsUpdatedRemoteEvent) GeocodingUpdatingRemoteEvent(org.opennms.features.poller.remote.gwt.client.remoteevents.GeocodingUpdatingRemoteEvent) LocationUpdatedRemoteEvent(org.opennms.features.poller.remote.gwt.client.remoteevents.LocationUpdatedRemoteEvent) ApplicationUpdatedRemoteEvent(org.opennms.features.poller.remote.gwt.client.remoteevents.ApplicationUpdatedRemoteEvent) GeocodingFinishedRemoteEvent(org.opennms.features.poller.remote.gwt.client.remoteevents.GeocodingFinishedRemoteEvent) LocationInfo(org.opennms.features.poller.remote.gwt.client.location.LocationInfo) Test(org.junit.Test)

Aggregations

ArrayList (java.util.ArrayList)1 Test (org.junit.Test)1 LocationInfo (org.opennms.features.poller.remote.gwt.client.location.LocationInfo)1 ApplicationUpdatedRemoteEvent (org.opennms.features.poller.remote.gwt.client.remoteevents.ApplicationUpdatedRemoteEvent)1 GeocodingFinishedRemoteEvent (org.opennms.features.poller.remote.gwt.client.remoteevents.GeocodingFinishedRemoteEvent)1 GeocodingUpdatingRemoteEvent (org.opennms.features.poller.remote.gwt.client.remoteevents.GeocodingUpdatingRemoteEvent)1 LocationUpdatedRemoteEvent (org.opennms.features.poller.remote.gwt.client.remoteevents.LocationUpdatedRemoteEvent)1 LocationsUpdatedRemoteEvent (org.opennms.features.poller.remote.gwt.client.remoteevents.LocationsUpdatedRemoteEvent)1 UpdateCompleteRemoteEvent (org.opennms.features.poller.remote.gwt.client.remoteevents.UpdateCompleteRemoteEvent)1