List of usage examples for org.jfree.data.time Day equals
@Override public boolean equals(Object obj)
From source file:org.jfree.data.time.DayTest.java
/** * Check that a Day instance is equal to itself. * * SourceForge Bug ID: 558850./*from w w w . j a v a 2s . c o m*/ */ @Test public void testEqualsSelf() { Day day = new Day(); assertTrue(day.equals(day)); }
From source file:org.jfree.data.time.junit.DayTest.java
/** * Check that a Day instance is equal to itself. * * SourceForge Bug ID: 558850.//from w ww. j a va 2s . c o m */ public void testEqualsSelf() { Day day = new Day(); assertTrue(day.equals(day)); }
From source file:org.jfree.data.time.DayTest.java
/** * Two objects that are equal are required to return the same hashCode. *//*from ww w. j a v a2s . c o m*/ @Test public void testHashcode() { Day d1 = new Day(1, 2, 2003); Day d2 = new Day(1, 2, 2003); assertTrue(d1.equals(d2)); int h1 = d1.hashCode(); int h2 = d2.hashCode(); assertEquals(h1, h2); }
From source file:org.jfree.data.time.junit.DayTest.java
/** * Two objects that are equal are required to return the same hashCode. *//*from w ww . j ava 2s . c om*/ public void testHashcode() { Day d1 = new Day(1, 2, 2003); Day d2 = new Day(1, 2, 2003); assertTrue(d1.equals(d2)); int h1 = d1.hashCode(); int h2 = d2.hashCode(); assertEquals(h1, h2); }
From source file:org.jfree.data.time.DayTest.java
/** * Tests the equals method./*from w ww .j a v a 2 s . c o m*/ */ @Test public void testEquals() { Day day1 = new Day(29, MonthConstants.MARCH, 2002); Day day2 = new Day(29, MonthConstants.MARCH, 2002); assertTrue(day1.equals(day2)); }
From source file:org.jfree.data.time.junit.DayTest.java
/** * Tests the equals method./*from w w w . j a v a 2s .c om*/ */ public void testEquals() { Day day1 = new Day(29, MonthConstants.MARCH, 2002); Day day2 = new Day(29, MonthConstants.MARCH, 2002); assertTrue(day1.equals(day2)); }