List of usage examples for org.jfree.data.time Month equals
@Override public boolean equals(Object obj)
From source file:org.jfree.data.time.MonthTest.java
/** * Check that a Month instance is equal to itself. * * SourceForge Bug ID: 558850./*from www . j ava 2 s . co m*/ */ @Test public void testEqualsSelf() { Month month = new Month(); assertTrue(month.equals(month)); }
From source file:org.jfree.data.time.junit.MonthTest.java
/** * Check that a Month instance is equal to itself. * * SourceForge Bug ID: 558850./*from ww w. j a va 2 s .c om*/ */ public void testEqualsSelf() { Month month = new Month(); assertTrue(month.equals(month)); }
From source file:org.jfree.data.time.MonthTest.java
/** * Two objects that are equal are required to return the same hashCode. *///from w w w . ja va2 s. c o m @Test public void testHashcode() { Month m1 = new Month(2, 2003); Month m2 = new Month(2, 2003); assertTrue(m1.equals(m2)); int h1 = m1.hashCode(); int h2 = m2.hashCode(); assertEquals(h1, h2); }
From source file:org.jfree.data.time.junit.MonthTest.java
/** * Two objects that are equal are required to return the same hashCode. *//*from w ww.j a va 2s . c om*/ public void testHashcode() { Month m1 = new Month(2, 2003); Month m2 = new Month(2, 2003); assertTrue(m1.equals(m2)); int h1 = m1.hashCode(); int h2 = m2.hashCode(); assertEquals(h1, h2); }
From source file:org.jfree.data.time.MonthTest.java
/** * Tests the equals method.//w w w . j av a 2 s . com */ @Test public void testEquals() { Month m1 = new Month(MonthConstants.MAY, 2002); Month m2 = new Month(MonthConstants.MAY, 2002); assertTrue(m1.equals(m2)); }
From source file:org.jfree.data.time.junit.MonthTest.java
/** * Tests the equals method./*from ww w . j ava 2 s. co m*/ */ public void testEquals() { Month m1 = new Month(MonthConstants.MAY, 2002); Month m2 = new Month(MonthConstants.MAY, 2002); assertTrue(m1.equals(m2)); }