List of usage examples for javax.imageio ImageReader equals
public boolean equals(Object obj)
From source file:com.gargoylesoftware.htmlunit.html.HtmlImageDownloadTest.java
/** * The image should be redownloaded when the src attribute changes. * @throws Exception if the test fails//from w ww. j a va 2 s.c om */ @Test public void redownloadOnSrcAttributeChanged() throws Exception { final HtmlImage htmlimage = getHtmlElementToTest("image1"); final ImageReader imagereader = htmlimage.getImageReader(); htmlimage.setAttribute("src", htmlimage.getAttribute("src") + "#changed"); assertFalse("Src attribute changed but ImageReader was not reloaded", imagereader.equals(htmlimage.getImageReader())); }