@@ -0,0 +1,2338 @@
+import org.junit.Test;%0Aimport utils.imaging.ImageLinkValidator;%0A%0Aimport java.awt.*;%0A%0Aimport static org.fest.assertions.Assertions.assertThat;%0A%0Apublic class ImageLinkValidatorTest %7B%0A%0A    @Test%0A    public void tooWideTest() %7B%0A        ImageLinkValidator validator = new ImageLinkValidator(new Dimension(300, 200));%0A        ImageLinkValidator.StatusMessage message = validator.validate(%22http://puertoricohotelreservations.com/wp-content/uploads/2011/11/riomargolf-1000x400.jpg%22);%0A        assertThat(!message.isSuccess());%0A    %7D%0A%0A    @Test%0A    public void tooTallTest() %7B%0A        ImageLinkValidator validator = new ImageLinkValidator(new Dimension(300, 200));%0A        ImageLinkValidator.StatusMessage message = validator.validate(%22http://puertoricohotelreservations.com/wp-content/uploads/2011/11/riomargolf-1000x400.jpg%22);%0A        assertThat(!message.isSuccess());%0A    %7D%0A%0A    @Test%0A    public void wrongAspectTest() %7B%0A        ImageLinkValidator validator = new ImageLinkValidator(new Dimension(1100, 200), new Dimension(600, 400));%0A        ImageLinkValidator.StatusMessage message = validator.validate(%22http://puertoricohotelreservations.com/wp-content/uploads/2011/11/riomargolf-1000x400.jpg%22);%0A        assertThat(!message.isSuccess());%0A    %7D%0A%0A    @Test%0A    public void perfectTest() %7B%0A        ImageLinkValidator validator = new ImageLinkValidator(new Dimension(1000, 400));%0A        ImageLinkValidator.StatusMessage message = validator.validate(%22http://puertoricohotelreservations.com/wp-content/uploads/2011/11/riomargolf-1000x400.jpg%22);%0A        assertThat(message.isSuccess());%0A    %7D%0A%0A    @Test%0A    public void almostTooWideTest() %7B%0A        ImageLinkValidator validator = new ImageLinkValidator(new Dimension(775, 400), new Dimension(1100, 400));%0A        ImageLinkValidator.StatusMessage message = validator.validate(%22http://puertoricohotelreservations.com/wp-content/uploads/2011/11/riomargolf-1000x400.jpg%22);%0A        assertThat(message.isSuccess());%0A    %7D%0A%0A    @Test%0A    public void fallsWithinTest() %7B%0A        ImageLinkValidator validator = new ImageLinkValidator(new Dimension(775, 300), new Dimension(1100, 500), true);%0A        ImageLinkValidator.StatusMessage message = validator.validate(%22http://puertoricohotelreservations.com/wp-content/uploads/2011/11/riomargolf-1000x400.jpg%22);%0A        assertThat(message.isSuccess());%0A    %7D%0A%0A%7D%0A

Add tests for ImageLinkValidator