@Test public void getPresetReminder () { long mockedNextMinute = 1497315847L; Long testReminder = null; PowerMockito.stub(PowerMockito.method(DateUtils.class, "getNextMinute")).toReturn(mockedNextMinute); assertEquals(mockedNextMinute, DateUtils.getPresetReminder(testReminder)); }
public static long getPresetReminder (Long currentReminder) { long now = Calendar.getInstance().getTimeInMillis(); return currentReminder != null && currentReminder > now ? currentReminder : getNextMinute(); }
DateUtils { public static long getPresetReminder (Long currentReminder) { long now = Calendar.getInstance().getTimeInMillis(); return currentReminder != null && currentReminder > now ? currentReminder : getNextMinute(); } }
DateUtils { public static long getPresetReminder (Long currentReminder) { long now = Calendar.getInstance().getTimeInMillis(); return currentReminder != null && currentReminder > now ? currentReminder : getNextMinute(); } private  DateUtils(); }
DateUtils { public static long getPresetReminder (Long currentReminder) { long now = Calendar.getInstance().getTimeInMillis(); return currentReminder != null && currentReminder > now ? currentReminder : getNextMinute(); } private  DateUtils(); static String getString(long date, String format); static String getString(Date d, String format); static Calendar getDateFromString(String str, String format); static Calendar getLongFromDateTime(String date, String dateFormat, String time, String timeFormat); static Calendar getCalendar(Long dateTime); static String getLocalizedDateTime(Context mContext,
      String dateString, String format); static boolean is24HourMode(Context mContext); static boolean isSameDay(long date1, long date2); static long getNextMinute(); static long getPresetReminder(Long currentReminder); static Long getPresetReminder(String alarm); static boolean isFuture(String timestamp); static boolean isFuture(Long timestamp); static String prettyTime(String timeInMillisec); static String prettyTime(Long timeInMillisec); }
DateUtils { public static long getPresetReminder (Long currentReminder) { long now = Calendar.getInstance().getTimeInMillis(); return currentReminder != null && currentReminder > now ? currentReminder : getNextMinute(); } private  DateUtils(); static String getString(long date, String format); static String getString(Date d, String format); static Calendar getDateFromString(String str, String format); static Calendar getLongFromDateTime(String date, String dateFormat, String time, String timeFormat); static Calendar getCalendar(Long dateTime); static String getLocalizedDateTime(Context mContext,
      String dateString, String format); static boolean is24HourMode(Context mContext); static boolean isSameDay(long date1, long date2); static long getNextMinute(); static long getPresetReminder(Long currentReminder); static Long getPresetReminder(String alarm); static boolean isFuture(String timestamp); static boolean isFuture(Long timestamp); static String prettyTime(String timeInMillisec); static String prettyTime(Long timeInMillisec);  }