summaryrefslogblamecommitdiff
path: root/user/ant/imageio_fix_java_test.patch
blob: 4fa856e73d50029a8183fb254fec585b50660d94 (plain) (tree)

























                                                                                                                                                                          
diff --git a/src/tests/junit/org/apache/tools/ant/taskdefs/optional/image/ImageIOTest.java b/src/tests/junit/org/apache/tools/ant/taskdefs/optional/image/ImageIOTest.java
index c96691d..e8cfd29 100644
--- a/src/tests/junit/org/apache/tools/ant/taskdefs/optional/image/ImageIOTest.java
+++ b/src/tests/junit/org/apache/tools/ant/taskdefs/optional/image/ImageIOTest.java
@@ -86,21 +86,6 @@ public class ImageIOTest {
         assertTrue("File was not overwritten.", lastModified < overwrittenLastModified);
     }

-    @Test
-    public void testDrawOverwriteTrue() {
-        buildRule.executeTarget("testSimpleScale");
-        assertThat(buildRule.getLog(), containsString("Processing File"));
-        File f = new File(buildRule.getOutputDir(), LARGEIMAGE);
-        assumeTrue("Could not change file modification date",
-                f.setLastModified(f.lastModified() - FILE_UTILS.getFileTimestampGranularity() * 2));
-        long lastModified = f.lastModified();
-        buildRule.executeTarget("testDrawOverwriteTrue");
-        assertThat(buildRule.getLog(), containsString("Processing File"));
-        f = new File(buildRule.getOutputDir(), LARGEIMAGE);
-        long overwrittenLastModified = f.lastModified();
-        assertTrue("File was not overwritten.", lastModified < overwrittenLastModified);
-    }
-
     @Test
     public void testOverwriteFalse() {
         buildRule.executeTarget("testSimpleScale");