@Test public void withoutResetsStatusUtilShouldReturnNotFound() { context.getStatusManager().add(new InfoStatus("test", this)); assertEquals(-1, statusUtil.timeOfLastReset()); }
public long timeOfLastReset() { List<Status> statusList = sm.getCopyOfStatusList(); if (statusList == null) return -1; int len = statusList.size(); for (int i = len - 1; i >= 0; i--) { Status s = statusList.get(i); if (CoreConstants.RESET_MSG_PREFIX.equals(s.getMessage())) { return s.getDate(); } } return -1; }
StatusUtil { public long timeOfLastReset() { List<Status> statusList = sm.getCopyOfStatusList(); if (statusList == null) return -1; int len = statusList.size(); for (int i = len - 1; i >= 0; i--) { Status s = statusList.get(i); if (CoreConstants.RESET_MSG_PREFIX.equals(s.getMessage())) { return s.getDate(); } } return -1; } }
StatusUtil { public long timeOfLastReset() { List<Status> statusList = sm.getCopyOfStatusList(); if (statusList == null) return -1; int len = statusList.size(); for (int i = len - 1; i >= 0; i--) { Status s = statusList.get(i); if (CoreConstants.RESET_MSG_PREFIX.equals(s.getMessage())) { return s.getDate(); } } return -1; } StatusUtil(StatusManager sm);  StatusUtil(Context context); }
StatusUtil { public long timeOfLastReset() { List<Status> statusList = sm.getCopyOfStatusList(); if (statusList == null) return -1; int len = statusList.size(); for (int i = len - 1; i >= 0; i--) { Status s = statusList.get(i); if (CoreConstants.RESET_MSG_PREFIX.equals(s.getMessage())) { return s.getDate(); } } return -1; } StatusUtil(StatusManager sm);  StatusUtil(Context context); static boolean contextHasStatusListener(Context context); static List<Status> filterStatusListByTimeThreshold(List<Status> rawList, long threshold); void addStatus(Status status); void addInfo(Object caller, String msg); void addWarn(Object caller, String msg); void addError(Object caller, String msg,
      Throwable t); boolean hasXMLParsingErrors(long threshold); boolean noXMLParsingErrorsOccurred(long threshold); int getHighestLevel(long threshold); boolean isErrorFree(long threshold); boolean isWarningOrErrorFree(long threshold); boolean containsMatch(long threshold, int level, String regex); boolean containsMatch(int level, String regex); boolean containsMatch(String regex); int matchCount(String regex); boolean containsException(Class<?> exceptionType); long timeOfLastReset(); }
StatusUtil { public long timeOfLastReset() { List<Status> statusList = sm.getCopyOfStatusList(); if (statusList == null) return -1; int len = statusList.size(); for (int i = len - 1; i >= 0; i--) { Status s = statusList.get(i); if (CoreConstants.RESET_MSG_PREFIX.equals(s.getMessage())) { return s.getDate(); } } return -1; } StatusUtil(StatusManager sm);  StatusUtil(Context context); static boolean contextHasStatusListener(Context context); static List<Status> filterStatusListByTimeThreshold(List<Status> rawList, long threshold); void addStatus(Status status); void addInfo(Object caller, String msg); void addWarn(Object caller, String msg); void addError(Object caller, String msg,
      Throwable t); boolean hasXMLParsingErrors(long threshold); boolean noXMLParsingErrorsOccurred(long threshold); int getHighestLevel(long threshold); boolean isErrorFree(long threshold); boolean isWarningOrErrorFree(long threshold); boolean containsMatch(long threshold, int level, String regex); boolean containsMatch(int level, String regex); boolean containsMatch(String regex); int matchCount(String regex); boolean containsException(Class<?> exceptionType); long timeOfLastReset();  }