AlertService { public Alert.Alerts getAlerts() { return getAlerts(DEFAULT_NB_ITEMS_ALERTS, 0); }  Alert.Alerts getAlerts(); Alert.Alerts getAlerts(final int nbItem); Alert.Alerts getAlerts(final int nbItem, final int start); List<Stat> getStatNoTypeChange(final String from); List<Stat> getStatTypeChange(final String from); Collection<Alert> getAlerts(final String from); Alert.Alerts getAlarmAlerts(final String id); static final int DEFAULT_NB_ITEMS_ALERTS; }
@Test public void getAllAlertsTest() throws Exception { final Alert.Alerts allAlerts = service.getAlerts(); assertNotNull(allAlerts); assertFalse(allAlerts.getValues().isEmpty()); assertEquals(allAlerts.getValues().size(), 2); }