package org.jdesktop.swingx.graphics;

import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;

import java.awt.image.BufferedImage;

import org.junit.Test;

public class GraphicsUtilitiesTest {
    @Test
    public void testClear() {
        BufferedImage img = GraphicsUtilities.createCompatibleImage(1, 1);
        GraphicsUtilities.clear(img);
        assertThat(GraphicsUtilities.getPixels(img, 0, 0, 1, 1, null)[0], is(0));
    }
}

Add test for new clear image method.
Add test for new clear image method.

git-svn-id: 9c6ef37dfd7eaa5a3748af7ba0f8d9e7b67c2a4c@4000 1312f61e-266d-0410-97fa-c3b71232c9ac
