@Test public void shouldReturnCurrentMonthOfYear() throws Exception { String currentMonthOfYear = DateUtil.currentMonthOfYear(); assertThat(currentMonthOfYear, is("09-2015")); }
public static String currentMonthOfYear() { String date = DateTime.now().toString(DATE_FORMAT); String[] split = date.split("-"); return split[1] + "-" + split[2]; }
DateUtil { public static String currentMonthOfYear() { String date = DateTime.now().toString(DATE_FORMAT); String[] split = date.split("-"); return split[1] + "-" + split[2]; } }
DateUtil { public static String currentMonthOfYear() { String date = DateTime.now().toString(DATE_FORMAT); String[] split = date.split("-"); return split[1] + "-" + split[2]; }  }
DateUtil { public static String currentMonthOfYear() { String date = DateTime.now().toString(DATE_FORMAT); String[] split = date.split("-"); return split[1] + "-" + split[2]; }  static String getCurrentDate(); static ArrayList<String> getCurrentWeeksDates(); static String currentMonthOfYear(); static String getDayName(String dateString); }
DateUtil { public static String currentMonthOfYear() { String date = DateTime.now().toString(DATE_FORMAT); String[] split = date.split("-"); return split[1] + "-" + split[2]; }  static String getCurrentDate(); static ArrayList<String> getCurrentWeeksDates(); static String currentMonthOfYear(); static String getDayName(String dateString); static final String DATE_FORMAT; }