From d0da779cbe6ffe63765f19db8994a42364b95ff4 Mon Sep 17 00:00:00 2001 From: Robert Greene Date: Sun, 4 Jul 2004 22:03:55 +0000 Subject: [PATCH] Preparing for internationalization as well as responding to the tighter Eclipse 3.0 code checks. Added RLE and ICO test. The i18n may be misplaced as this is test code... --- .../filters/imagehandlers/SwtImageTest.java | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/test/com/webcodepro/applecommander/storage/filters/imagehandlers/SwtImageTest.java b/test/com/webcodepro/applecommander/storage/filters/imagehandlers/SwtImageTest.java index e0843a6..06e9335 100644 --- a/test/com/webcodepro/applecommander/storage/filters/imagehandlers/SwtImageTest.java +++ b/test/com/webcodepro/applecommander/storage/filters/imagehandlers/SwtImageTest.java @@ -23,19 +23,27 @@ public class SwtImageTest extends TestCase { } public void testPNG() throws Exception { - performTest("PNG"); + performTest("PNG"); //$NON-NLS-1$ } public void testJPEG() throws Exception { - performTest("JPEG"); + performTest("JPEG"); //$NON-NLS-1$ } public void testBMP() throws Exception { - performTest("BMP"); + performTest("BMP"); //$NON-NLS-1$ + } + + public void testBMP_RLE() throws Exception { + performTest("RLE"); //$NON-NLS-1$ } public void testGIF() throws Exception { - performTest("GIF"); + performTest("GIF"); //$NON-NLS-1$ + } + + public void testICO() throws Exception { + performTest("ICO"); //$NON-NLS-1$ } protected void performTest(String imageType) throws Exception { @@ -59,6 +67,6 @@ public class SwtImageTest extends TestCase { image.setPoint(x, y, color); } } - image.save(new FileOutputStream("C:/Temp/TestImage." + imageType)); + image.save(new FileOutputStream("TestImage." + imageType)); //$NON-NLS-1$ } }