@Test public void canBeConstructedFromParts(){ final String input = "Thu, 01 Jan 1970 00:00:01 GMT"; DateTimeRFC6265 result = new DateTimeRFC6265(DayOfWeek.THURSDAY, 1, MonthOfYear.JANUARY, 1970, 21, 33, 34, "PST"); Assert.assertEquals(DateTimeRFC6265.DayOfWeek.THURSDAY, result.dayOfWeek); Assert.assertEquals(1, result.dayOfMonth); Assert.assertEquals(DateTimeRFC6265.MonthOfYear.JANUARY, result.monthOfYear); Assert.assertEquals(1970, result.year); Assert.assertEquals(21, result.hours); Assert.assertEquals(33, result.minutes); Assert.assertEquals(34, result.seconds); Assert.assertEquals("PST", result.timezone); Assert.assertEquals("Thu, 01 Jan 1970 21:33:34 PST", result.toString()); }
@Override public String toString(){ return text; }
DateTimeRFC6265 { @Override public String toString(){ return text; } }
DateTimeRFC6265 { @Override public String toString(){ return text; } DateTimeRFC6265(DayOfWeek dayOfWeek, int dayOfMonth, MonthOfYear monthOfYear, int year, int hours, int minutes, int seconds, String timezone);  DateTimeRFC6265(String text); }
DateTimeRFC6265 { @Override public String toString(){ return text; } DateTimeRFC6265(DayOfWeek dayOfWeek, int dayOfMonth, MonthOfYear monthOfYear, int year, int hours, int minutes, int seconds, String timezone);  DateTimeRFC6265(String text); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object o); }
DateTimeRFC6265 { @Override public String toString(){ return text; } DateTimeRFC6265(DayOfWeek dayOfWeek, int dayOfMonth, MonthOfYear monthOfYear, int year, int hours, int minutes, int seconds, String timezone);  DateTimeRFC6265(String text); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object o);  }