return new TestSuite( IconTest.class );
}
public void testConstructorWithoutNode()
{
Icon icon = new Icon();
String mimeType = "image/png";
assertFalse(icon.hasMimeType());
assertEquals("", icon.getMimeType());
icon.setMimeType(mimeType);
assertEquals(mimeType, icon.getMimeType());
assertTrue(icon.hasMimeType());
int width = 640;
assertEquals(0, icon.getWidth());
icon.setWidth(width);
assertEquals(width, icon.getWidth());
int height = 480;
assertEquals(0, icon.getHeight());
icon.setHeight(height);
assertEquals(height, icon.getHeight());
int depth = 24;
assertEquals(0, icon.getDepth());
icon.setDepth(depth);
assertEquals(depth, icon.getDepth());
String url = "/icon";
assertFalse(icon.hasURL());
assertEquals("", icon.getURL());
icon.setURL(url);
assertTrue(icon.hasURL());
assertEquals(url, icon.getURL());
assertTrue(icon.isURL(url));
byte data[] = new byte[1];
assertEquals(null, icon.getBytes());
icon.setBytes(data);
assertTrue(icon.hasBytes());
assertTrue(icon.getBytes() != null);
}