@Test public void testMarkerStatusAllNonStoppedMonitorsDisconnected() { Collection<GWTLocationMonitor> monitors = new ArrayList<GWTLocationMonitor>(); monitors.add(getMonitor("STOPPED")); monitors.add(getMonitor("STOPPED")); monitors.add(getMonitor("DISCONNECTED")); monitors.add(getMonitor("DISCONNECTED")); monitors.add(getMonitor("DISCONNECTED")); LocationMonitorState lms = new LocationMonitorState(monitors, null); assertEquals("status should be unknown if all monitors are either disconnected or stopped", Status.UNKNOWN, lms.getStatusDetails().getStatus()); }
public StatusDetails getStatusDetails() { if (m_statusDetails == null) { m_statusDetails = getStatusDetailsUncached(); } return m_statusDetails; }
LocationMonitorState implements Serializable, IsSerializable { public StatusDetails getStatusDetails() { if (m_statusDetails == null) { m_statusDetails = getStatusDetailsUncached(); } return m_statusDetails; } }
LocationMonitorState implements Serializable, IsSerializable { public StatusDetails getStatusDetails() { if (m_statusDetails == null) { m_statusDetails = getStatusDetailsUncached(); } return m_statusDetails; } LocationMonitorState();  LocationMonitorState(Collection<GWTLocationSpecificStatus> statuses);  LocationMonitorState(Collection<GWTLocationMonitor> monitors, Collection<GWTLocationSpecificStatus> statuses); }
LocationMonitorState implements Serializable, IsSerializable { public StatusDetails getStatusDetails() { if (m_statusDetails == null) { m_statusDetails = getStatusDetailsUncached(); } return m_statusDetails; } LocationMonitorState();  LocationMonitorState(Collection<GWTLocationSpecificStatus> statuses);  LocationMonitorState(Collection<GWTLocationMonitor> monitors, Collection<GWTLocationSpecificStatus> statuses); StatusDetails getStatusDetails(); boolean allMonitorsStarted(); boolean atLeastOneMonitorStarted(); boolean allButOneMonitorsDisconnected(); boolean allMonitorsDisconnected(); boolean noMonitorsStarted(); int getMonitorsStarted(); int getMonitorsStopped(); int getMonitorsDisconnected(); Collection<GWTMonitoredService> getServices(); Collection<String> getServicesDown(); Collection<GWTLocationMonitor> getMonitorsWithServicesDown(); boolean noMonitorsExist(); String toString(); }
LocationMonitorState implements Serializable, IsSerializable { public StatusDetails getStatusDetails() { if (m_statusDetails == null) { m_statusDetails = getStatusDetailsUncached(); } return m_statusDetails; } LocationMonitorState();  LocationMonitorState(Collection<GWTLocationSpecificStatus> statuses);  LocationMonitorState(Collection<GWTLocationMonitor> monitors, Collection<GWTLocationSpecificStatus> statuses); StatusDetails getStatusDetails(); boolean allMonitorsStarted(); boolean atLeastOneMonitorStarted(); boolean allButOneMonitorsDisconnected(); boolean allMonitorsDisconnected(); boolean noMonitorsStarted(); int getMonitorsStarted(); int getMonitorsStopped(); int getMonitorsDisconnected(); Collection<GWTMonitoredService> getServices(); Collection<String> getServicesDown(); Collection<GWTLocationMonitor> getMonitorsWithServicesDown(); boolean noMonitorsExist(); String toString();  }