FortuneConstellation { public static void printBirthInfo(String timeStr) { DateTime date = new DateTime(timeStr); printBirthInfo(date.getYear(), date.getMonthOfYear(), date.getDayOfMonth(), date.getHourOfDay(), date.getMinuteOfHour(), date.getSecondOfMinute()); }  static void printBirthInfo(String timeStr); static void printBirthInfo(int year, int month, int day, int hour, int minute, int second); static void printTrunkBranchInfo(int year, int month, int day, int hour, int minute, int second, Map<String, Integer> info); static void getDayTB(int year, int month, int day, int hour); static void getHourTB(int dayTrunkSeq, int hour); static Map<String, Integer> getSpringBeginTime(int year); static void printZodiacAnimal(int year, int month, int day, int hour, int minute, int second, Map<String, Integer> info, int lunarYear); static void printConstellation(int month, int day);  }
@Test public void printBirthInfo() { FortuneConstellation.printBirthInfo("1993-01-16T04:30:30"); FortuneConstellation.printBirthInfo("1994-02-04T11:15:30"); }