Java 类org.jfree.chart.annotations.XYDrawableAnnotation 实例源码

项目:parabuild-ci    文件:XYDrawableAnnotationTests.java   
/**
 * Confirm that the equals method can distinguish all the required fields.
 */
public void testEquals() {

    XYDrawableAnnotation a1 = new XYDrawableAnnotation(10.0, 20.0, 100.0, 200.0, null);
    XYDrawableAnnotation a2 = new XYDrawableAnnotation(10.0, 20.0, 100.0, 200.0, null);
    assertTrue(a1.equals(a2));

}
项目:parabuild-ci    文件:XYDrawableAnnotationTests.java   
/**
 * Confirm that the equals method can distinguish all the required fields.
 */
public void testEquals() {    
    XYDrawableAnnotation a1 = new XYDrawableAnnotation(
        10.0, 20.0, 100.0, 200.0, new TestDrawable()
    );
    XYDrawableAnnotation a2 = new XYDrawableAnnotation(
        10.0, 20.0, 100.0, 200.0, new TestDrawable()
    );
    assertTrue(a1.equals(a2));
}
项目:parabuild-ci    文件:XYDrawableAnnotationTests.java   
/**
 * Two objects that are equal are required to return the same hashCode. 
 */
public void testHashCode() {
    XYDrawableAnnotation a1 = new XYDrawableAnnotation(
        10.0, 20.0, 100.0, 200.0, new TestDrawable()
    );
    XYDrawableAnnotation a2 = new XYDrawableAnnotation(
        10.0, 20.0, 100.0, 200.0, new TestDrawable()
    );
    assertTrue(a1.equals(a2));
    int h1 = a1.hashCode();
    int h2 = a2.hashCode();
    assertEquals(h1, h2);
}
项目:nabs    文件:XYDrawableAnnotationTests.java   
/**
 * Confirm that the equals method can distinguish all the required fields.
 */
public void testEquals() {    
    XYDrawableAnnotation a1 = new XYDrawableAnnotation(
        10.0, 20.0, 100.0, 200.0, new TestDrawable()
    );
    XYDrawableAnnotation a2 = new XYDrawableAnnotation(
        10.0, 20.0, 100.0, 200.0, new TestDrawable()
    );
    assertTrue(a1.equals(a2));
}
项目:nabs    文件:XYDrawableAnnotationTests.java   
/**
 * Two objects that are equal are required to return the same hashCode. 
 */
public void testHashCode() {
    XYDrawableAnnotation a1 = new XYDrawableAnnotation(
        10.0, 20.0, 100.0, 200.0, new TestDrawable()
    );
    XYDrawableAnnotation a2 = new XYDrawableAnnotation(
        10.0, 20.0, 100.0, 200.0, new TestDrawable()
    );
    assertTrue(a1.equals(a2));
    int h1 = a1.hashCode();
    int h2 = a2.hashCode();
    assertEquals(h1, h2);
}
项目:astor    文件:XYDrawableAnnotationTests.java   
/**
 * Two objects that are equal are required to return the same hashCode.
 */
public void testHashCode() {
    XYDrawableAnnotation a1 = new XYDrawableAnnotation(10.0, 20.0, 100.0,
            200.0, new TestDrawable());
    XYDrawableAnnotation a2 = new XYDrawableAnnotation(10.0, 20.0, 100.0,
            200.0, new TestDrawable());
    assertTrue(a1.equals(a2));
    int h1 = a1.hashCode();
    int h2 = a2.hashCode();
    assertEquals(h1, h2);
}
项目:astor    文件:XYDrawableAnnotationTests.java   
/**
 * Checks that this class implements PublicCloneable.
 */
public void testPublicCloneable() {
    XYDrawableAnnotation a1 = new XYDrawableAnnotation(10.0, 20.0, 100.0,
            200.0, new TestDrawable());
    assertTrue(a1 instanceof PublicCloneable);
}